Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add guard for Watir Image#file_created_date

  • Loading branch information...
commit 5d1b33c0feac56ce209c1468ecb945c2f1c795dd 1 parent eb60f25
Jarmo Pertman jarmo authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 image_spec.rb
14 image_spec.rb
View
@@ -129,12 +129,14 @@
end
not_compliant_on :webdriver do
- describe "#file_created_date" do
- it "returns the date the image was created as reported by the file system" do
- browser.goto(WatirSpec.url_for("images.html", :needs_server => true))
- image = browser.image(:index, 1)
- path = "#{File.dirname(__FILE__)}/html/#{image.src}"
- image.file_created_date.to_i.should == File.mtime(path).to_i
+ bug "https://github.com/watir/watir/issues/36", :watir do
+ describe "#file_created_date" do
+ it "returns the date the image was created as reported by the file system" do
+ browser.goto(WatirSpec.url_for("images.html", :needs_server => true))
+ image = browser.image(:index, 1)
+ path = "#{File.dirname(__FILE__)}/html#{image.src.gsub(WatirSpec.host, '')}"
+ image.file_created_date.to_i.should == File.mtime(path).to_i
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.