diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-08-28 10:50:23 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-16 14:03:24 +0100 |
commit | 6b29b23dc1690d09e1ef5bd9cc277562483c9ef8 (patch) | |
tree | bae13dcb628f04d02a64e5d30a59a2a933b79bf0 /spec/controllers/request_controller_spec.rb | |
parent | 2806e287594a5b02ae8e56c23564ca5fb93d24ff (diff) |
Use earlier factory_girl syntax
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
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 |