logic_mapping_controller_test.rb revision 0ae77dd0f6698fa1948d1c6c973cc64d6df9e8d6
require 'test_helper'
context 'Logic Mappings:' do
setup do
@mapping = FactoryGirl.create :logic_mapping, :source => @source_logic, :target => @target_logic, :user => @user
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
:target_id => @target_logic.id,
:iri => "http://test.de"
}
end
should "create the record" do
end
end
context 'on PUT to Update' do
setup do
:target_id => @target_logic.id,
:iri => "http://test2.de"
}
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
:target_id => @target_logic.id,
:iri => "http://test.de"
}
end
should "create the record" do
end
end
context 'on PUT to Update' do
setup do
:target_id => @target_logic.id,
:iri => "http://test2.de"
}
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
context "on GET to EDIT" do
setup do
end
should respond_with :redirect
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
end
context 'on POST to CREATE' do
setup do
:target_id => @target_logic.id,
:iri => "http://test.de"
}
end
should "not create the record" do
end
end
context 'on PUT to Update' do
setup do
:target_id => @target_logic.id,
:iri => "http://test2.de"
}
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