Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
it "creates a new work with a test image" do
client = FactoryGirl.create(:client)
work =
visit works_path
attach_file("Image", "#{Rails.root}/spec/support/images/example.jpg")
click_button "Upload Image"
page.should have_content("New Work")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment