Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scenario "Uploading an image" do
- Factory :establishment, :name => "China In Box Floresta", :company => company
- visit admin_establishments_page
- click_link "Alterar"
- attach_file "establishment_photos_attributes__image", image_file("logo.jpg")
- click_button "Gravar"
- page.should have_content("China In Box Floresta")
- click_link "Alterar"
- page.should have_xpath("//*/img[contains(@src, 'logo.jpg')]")
- end
Add Comment
Please, Sign In to add comment