Sha256: 7a5425e7587fcd3e233891947b5a93b9528d1b96634296333970777a080dca4b

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 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"
    expect {
      text_field(:name => "q").set "Bing"
    }.to make {text.include?("Bing")}.within(15)
    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

3 entries across 3 versions & 1 rubygems

Version Path
watirsplash-1.4.3 lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt
watirsplash-1.4.2 lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt
watirsplash-1.4.1 lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt