spec/watirspec/maps_spec.rb in watir-webdriver-0.0.6 vs spec/watirspec/maps_spec.rb in watir-webdriver-0.0.7
- old
+ new
@@ -1,7 +1,7 @@
# encoding: utf-8
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path('spec_helper', File.dirname(__FILE__))
describe "Maps" do
before :each do
browser.goto(WatirSpec.files + "/images.html")
@@ -19,14 +19,20 @@
end
end
describe "#each" do
it "iterates through maps correctly" do
+ count = 0
+
browser.maps.each_with_index do |m, index|
m.name.should == browser.map(:index, index).name
m.id.should == browser.map(:index, index).id
m.value.should == browser.map(:index, index).value
+
+ count += 1
end
+
+ count.should > 0
end
end
end