Sha256: 97a9b75ed64bbbf32db1424f603af9a868ad98bae5bb6d0f1eef284d0a857953

Contents?: true

Size: 1.36 KB

Versions: 14

Compression:

Stored size: 1.36 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 == "about:blank"
  end

  it "has easy access to ApplicationHelper methods" do
    # ApplicationHelper#helper_method_one will be executed
    helper_method_one.should == "one"
    # ApplicationHelper#has_second_method? will be executed
    should have_second_method
    # ApplicationHelper#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"
    title.should == "Google"
    text_field(:name => "q").set "Bing"
    search_button = button(:name => "btnG")
    search_button.should exist
    search_button.should be_visible
    search_button.click
    text.should include("Bing")
    pending "this is a known 'bug'" do
      title.should == "Bing"
    end
  end

  it "has access to global methods after generate_common command has been used" do
    pending "it fails as long as there's not executed 'watirsplash generate_common' command
and ui-test-common is not loaded by this project" do
      new_global_method.should == "it just works"
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
watirsplash-0.2.14 templates/project/spec/dummy_spec.rb
watirsplash-0.2.12 templates/project/spec/dummy_spec.rb
watirsplash-0.2.11 templates/project/spec/dummy_spec.rb
watirsplash-0.2.10 templates/project/spec/dummy_spec.rb
watirsplash-0.2.9 templates/project/spec/dummy_spec.rb
watirsplash-0.2.8 templates/project/spec/dummy_spec.rb
watirsplash-0.2.7 templates/project/spec/dummy_spec.rb
watirsplash-0.2.6 templates/project/spec/dummy_spec.rb
watirsplash-0.2.5 templates/project/spec/dummy_spec.rb
watirsplash-0.2.4 templates/project/spec/dummy_spec.rb
watirsplash-0.2.3 templates/project/spec/dummy_spec.rb
watirsplash-0.2.2 templates/project/spec/dummy_spec.rb
watirsplash-0.2.1 templates/project/spec/dummy_spec.rb
watirsplash-0.2.0 templates/project/spec/dummy_spec.rb