spec/watirspec/dts_spec.rb in watir-webdriver-0.0.6 vs spec/watirspec/dts_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 "Dts" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") @@ -19,13 +19,19 @@ end end describe "#each" do it "iterates through dts correctly" do + count = 0 + browser.dts.each_with_index do |d, index| d.id.should == browser.dt(:index, index).id d.class_name.should == browser.dt(:index, index).class_name + + count += 1 end + + count.should > 0 end end end