-
-
Save leemcalilly/1e159f1b93005b8113f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment