ontologies_controller_test.rb revision c089c2e01fd049de4c25af718af1a26b8846c890
require 'test_helper'
context 'Ontology Instance' do
setup do
end
context 'on GET to index' do
setup do
end
end
context 'on GET to show' do
setup do
end
end
context 'signed in' do
setup do
end
context 'on GET to new' do
setup do
end
end
context 'on POST to create' do
context 'with invalid input' do
setup do
source_uri: 'fooo'
}],
}
end
end
context 'with valid input' do
setup do
}],
}
end
should respond_with :redirect
end
end
end
context 'owned by signed in user' do
setup do
:role => 'owner',
end
context 'on GET to edit' do
setup do
end
end
context 'on PUT to update' do
setup do
:name => 'foo bar'
end
end
end
end
end