watirsplash 0.2.14 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +8 -0
- data/License.txt +2 -2
- data/README.rdoc +5 -5
- data/Rakefile +16 -17
- data/VERSION +1 -1
- data/bin/watirsplash +2 -9
- data/lib/watirsplash.rb +5 -7
- data/lib/watirsplash/cli.rb +34 -0
- data/lib/watirsplash/file_helper.rb +1 -1
- data/lib/watirsplash/generators/migrate_project.rb +25 -0
- data/lib/watirsplash/generators/new_common_project.rb +18 -0
- data/lib/watirsplash/generators/new_project.rb +45 -0
- data/{templates/common/config.rb → lib/watirsplash/generators/templates/new_common_project/config.rb.tt} +4 -4
- data/{templates/common → lib/watirsplash/generators/templates/new_common_project}/environment.rb +3 -3
- data/{templates/common → lib/watirsplash/generators/templates/new_common_project}/lib/common_application_helper.rb +2 -2
- data/lib/watirsplash/generators/templates/new_project/.rspec +2 -0
- data/lib/watirsplash/generators/templates/new_project/config.rb.tt +22 -0
- data/{templates/project/environment.rb → lib/watirsplash/generators/templates/new_project/environment.rb.tt} +4 -5
- data/{templates/project/spec/application_helper.rb → lib/watirsplash/generators/templates/new_project/spec/%formatted_name%_helper.rb.tt} +3 -3
- data/lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt +40 -0
- data/lib/watirsplash/html_formatter.rb +14 -16
- data/lib/watirsplash/rspec_patches.rb +74 -0
- data/lib/watirsplash/spec_helper.rb +2 -10
- data/lib/watirsplash/util.rb +15 -1
- data/lib/watirsplash/{watir.rb → watir_patches.rb} +3 -7
- data/spec/file_helper_spec.rb +19 -0
- data/spec/spec_helper_spec.rb +0 -13
- data/spec/spec_match_array_spec.rb +0 -2
- data/spec/util_spec.rb +0 -2
- data/spec/watir_ie_spec.rb +14 -31
- metadata +61 -50
- data/lib/watirsplash/element_extensions.rb +0 -70
- data/lib/watirsplash/generator.rb +0 -55
- data/lib/watirsplash/spec.rb +0 -53
- data/lib/watirsplash/wait_helper.rb +0 -44
- data/spec/spec.opts +0 -11
- data/spec/watir_element_spec.rb +0 -69
- data/spec/watir_table_row_spec.rb +0 -45
- data/spec/watir_table_spec.rb +0 -78
- data/templates/project/config.rb +0 -22
- data/templates/project/spec/dummy_spec.rb +0 -44
- data/templates/project/spec/spec.opts +0 -11
@@ -1,44 +0,0 @@
|
|
1
|
-
# This is a fully working spec file which you can run to see if
|
2
|
-
# your configuration is correct and everything is working as expected
|
3
|
-
|
4
|
-
describe "WatirSplash" do
|
5
|
-
|
6
|
-
it "has the browser window opened" do
|
7
|
-
url.should == "about:blank"
|
8
|
-
end
|
9
|
-
|
10
|
-
it "has easy access to ApplicationHelper methods" do
|
11
|
-
# ApplicationHelper#helper_method_one will be executed
|
12
|
-
helper_method_one.should == "one"
|
13
|
-
# ApplicationHelper#has_second_method? will be executed
|
14
|
-
should have_second_method
|
15
|
-
# ApplicationHelper#correct? method will be executed
|
16
|
-
should_not be_correct
|
17
|
-
end
|
18
|
-
|
19
|
-
it "fails the example and makes a screenshot of the browser" do
|
20
|
-
false.should be_true
|
21
|
-
end
|
22
|
-
|
23
|
-
it "is in pending status" do
|
24
|
-
goto "http://google.com"
|
25
|
-
title.should == "Google"
|
26
|
-
text_field(:name => "q").set "Bing"
|
27
|
-
search_button = button(:name => "btnG")
|
28
|
-
search_button.should exist
|
29
|
-
search_button.should be_visible
|
30
|
-
search_button.click
|
31
|
-
text.should include("Bing")
|
32
|
-
pending "this is a known 'bug'" do
|
33
|
-
title.should == "Bing"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
it "has access to global methods after generate_common command has been used" do
|
38
|
-
pending "it fails as long as there's not executed 'watirsplash generate_common' command
|
39
|
-
and ui-test-common is not loaded by this project" do
|
40
|
-
new_global_method.should == "it just works"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|