Sha256: b423116256e459c497abb2d34a6b04b00a544934d7960fc1de86027070de75d2
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
# This is a fully working spec file which you can run to see if # your configuration is correct and everything is working as expected describe WatirSplash do it "has the browser window opened" do url.should == Config::<%= name %>::URL end it "has easy access to <%= name %>Helper methods" do # <%= name %>Helper#helper_method_one will be executed helper_method_one.should == "one" # <%= name %>Helper#has_second_method? will be executed should have_second_method # <%= name %>Helper#correct? method will be executed should_not be_correct end it "fails the example and makes a screenshot of the browser" do false.should be_true end it "is in pending status" do goto "http://google.com/ncr" title.should == "Google" text_field(:name => "q").set "Bing" wait_until(15) {text.include? "Bing"} pending "this is a known 'bug'" do title.should == "Bing" end end it "has access to global methods after \"new_common\" command has been used" do pending "it fails as long as 'watirsplash new_common' command hasn't been executed and ui-test-common is not loaded by this project" do new_global_method.should == "it just works" end end end
Version data entries
4 entries across 4 versions & 1 rubygems