From f3c6f513bc75516f7ba70c04a9ecef78d6d14ac9 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Wed, 29 Apr 2015 14:47:34 +0100 Subject: Use a sequence for InfoRequest factory Avoids unique name constraint --- spec/integration/download_request_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/integration') diff --git a/spec/integration/download_request_spec.rb b/spec/integration/download_request_spec.rb index 48b42b11d..c73b85866 100644 --- a/spec/integration/download_request_spec.rb +++ b/spec/integration/download_request_spec.rb @@ -143,7 +143,8 @@ describe 'when making a zipfile available' do it "should update the contents of the zipfile when the request changes" do - info_request = FactoryGirl.create(:info_request_with_incoming) + info_request = FactoryGirl.create(:info_request_with_incoming, + :title => 'Example Title') request_owner = login(info_request.user) inspect_zip_download(request_owner, info_request) do |zip| zip.count.should == 1 # just the message -- cgit v1.2.3