Sha256: 9e52862a335e96caef797dc7d46054bff0c501c3c2f1c2ec20259ccdd6637631

Contents?: true

Size: 837 Bytes

Versions: 2

Compression:

Stored size: 837 Bytes

Contents

describe WatirSplash::SpecHelper do

  it "opens browser automatically" do
    WatirSplash::Util.formatter.browser.should exist
    WatirSplash::Util.formatter.browser.url.should == "about:blank"
  end

  it "redirects method calls to Watir::Browser" do
    goto "http://dl.dropbox.com/u/2731643/WatirSplash/test.html"
    url.should =~ /test/
    title.should == "WatirSplash testing page"
    text_field = text_field(:name => "field1")
    text_field.should exist
    text_field.should be_visible
    text_field.value == "empty value"
  end

  it "redirects usages of method 'p' to Watir::IE#p instead of Kernel.p" do
    goto "http://dl.dropbox.com/u/2731643/WatirSplash/test.html"
    paragraph = p(:class => "my_pg")
    paragraph.should exist
    paragraph.text.should == "This is a paragraph!"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watirsplash-2.0.0.rc2 spec/spec_helper_spec.rb
watirsplash-2.0.0.rc1 spec/spec_helper_spec.rb