secret
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9
it "creates a new work with a test image" do
client = FactoryGirl.create(:client)
work = FactoryGirl.build(:work)
visit works_path
attach_file("Image", "#{Rails.root}/spec/support/images/example.jpg")
click_button "Upload Image"
save_and_open_page
page.should have_content("New Work")
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.