spec/watirspec/filefield_spec.rb in watir-webdriver-0.0.1.dev vs spec/watirspec/filefield_spec.rb in watir-webdriver-0.0.1.dev2
- old
+ new
@@ -107,10 +107,10 @@
path = File.expand_path(__FILE__)
browser.file_field(:name, "new_user_portrait").set path
browser.file_field(:name, "new_user_portrait").value.should == path
- messages.first.should == path
+ messages.first.should include(File.basename(path)) # only some browser will return the full path
browser.button(:name, "new_user_submit").click
end
end
end