Commit f929e7b9

mo khan <mo@mokhan.ca>
2013-11-02 05:06:04
fix broken spec.
1 parent 34e0bba
Changed files (1)
spec/features/add_to_favorites_spec.rb
@@ -5,6 +5,7 @@ describe "adding a cake to your favorites", :js => true do
   let!(:me) { create(:user, :password => "password") }
 
   before :each do
+    system "cp #{creation.photos.first.image.file.file} #{creation.photos.first.image.file.file.gsub(/example/, 'large_example')}"
     visit user_session_path
     within('.form-inline') do
       fill_in('user_email', :with => me.email)