serializations_controller_test.rb revision 7c5e9db9a07461d92c007563a2a27ca42ce93bae
require 'test_helper'
context 'Serialization:' do
setup do
end
context 'signed in as owner' do
setup do
end
context 'on get to show' do
setup do
end
end
context 'on get to new' do
setup do
end
end
context 'on POST to CREATE' do
setup do
end
should 'create the record' do
end
end
context 'on PUT to Update' do
setup do
:mimetype => 'texttext'
}
end
should 'change the record' do
end
end
context 'on POST to DELETE' do
setup do
end
should 'remove the record' do
end
end
context 'on GET to EDIT' do
setup do
end
end
end
context 'signed in as not-owner' do
setup do
end
context 'on get to show' do
setup do
end
end
context 'on get to new' do
setup do
end
end
context 'on POST to CREATE' do
setup do
end
should 'create the record' do
end
end
context 'on PUT to Update' do
setup do
:mimetype => 'texttext'
}
end
should 'change the record' do
end
end
context 'on POST to DELETE' do
setup do
end
should 'remove the record' do
end
end
context 'on GET to EDIT' do
setup do
end
end
end
context 'not signed in' do
context 'on get to show' do
setup do
end
end
context 'on get to new' do
setup do
end
should respond_with :redirect
end
context 'on POST to CREATE' do
setup do
:mimetype => 'text',
:language_id => @language.id
}
end
should 'not create the record' do
end
end
context 'on PUT to Update' do
setup do
:mimetype => 'text',
:language_id => @language.id
}
end
should 'not change the record' do
end
end
context 'on POST to DELETE' do
setup do
end
should 'not remove the record' do
end
end
end
end
end