logic_mappings_controller_spec.rb revision 9721f58c0c6959fae3a048672ad4eacc6a1123e7
require 'spec_helper'
let!(:user) { FactoryGirl.create :user }
source: source_logic, target: target_logic, user: user
end
before do
end
it { should respond_with :success }
it { should render_template :show }
end
before do
end
it { should respond_with :success }
it { should render_template :new }
end
before do
}
end
end
end
end
end
end
before do
put :update, logic_id: source_logic.id, id: mapping.id,
}
end
end
end
end
end
end
before do
end
end
end
before do
end
it { should respond_with :success }
it { should render_template :edit }
end
end
before do
end
it { should respond_with :success }
it { should render_template :show }
end
before do
end
it { should respond_with :success }
it { should render_template :new }
end
before do
}
end
end
end
end
end
end
before do
put :update, logic_id: source_logic.id, id: mapping.id,
}
end
end
end
before do
end
end
end
before do
end
it { should respond_with :redirect }
end
end
before do
end
it { should respond_with :success }
it { should render_template :show }
end
before do
end
it { should respond_with :redirect }
it { should set_the_flash }
end
end
before do
}
end
end
end
before do
put :update, logic_id: source_logic.id, id: mapping.id,
}
end
end
end
before do
end
end
end
end