From 6b29b23dc1690d09e1ef5bd9cc277562483c9ef8 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 28 Aug 2013 10:50:23 +0100 Subject: Use earlier factory_girl syntax --- spec/controllers/request_controller_spec.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'spec/controllers/request_controller_spec.rb') diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index ec10d99d8..854ce09c6 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -783,7 +783,7 @@ describe RequestController, "when handling prominence" do before(:each) do @info_request = FactoryGirl.create(:info_request_with_incoming_attachments, - prominence: 'hidden') + :prominence => 'hidden') end it "should not show request if you're not logged in" do @@ -836,7 +836,8 @@ describe RequestController, "when handling prominence" do context 'when the request is requester_only' do before(:each) do - @info_request = FactoryGirl.create(:info_request_with_incoming_attachments, prominence: 'requester_only') + @info_request = FactoryGirl.create(:info_request_with_incoming_attachments, + :prominence => 'requester_only') end it "should not show request if you're not logged in" do @@ -872,7 +873,8 @@ describe RequestController, "when handling prominence" do context 'when the incoming message has prominence hidden' do before(:each) do - @incoming_message = FactoryGirl.create(:incoming_message_with_attachments, prominence: 'hidden') + @incoming_message = FactoryGirl.create(:incoming_message_with_attachments, + :prominence => 'hidden') @info_request = @incoming_message.info_request end @@ -933,7 +935,7 @@ describe RequestController, "when handling prominence" do before(:each) do @incoming_message = FactoryGirl.create(:incoming_message_with_attachments, - prominence: 'requester_only') + :prominence => 'requester_only') @info_request = @incoming_message.info_request end -- cgit v1.2.3