watirsplash 0.2.14 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/History.rdoc +8 -0
  2. data/License.txt +2 -2
  3. data/README.rdoc +5 -5
  4. data/Rakefile +16 -17
  5. data/VERSION +1 -1
  6. data/bin/watirsplash +2 -9
  7. data/lib/watirsplash.rb +5 -7
  8. data/lib/watirsplash/cli.rb +34 -0
  9. data/lib/watirsplash/file_helper.rb +1 -1
  10. data/lib/watirsplash/generators/migrate_project.rb +25 -0
  11. data/lib/watirsplash/generators/new_common_project.rb +18 -0
  12. data/lib/watirsplash/generators/new_project.rb +45 -0
  13. data/{templates/common/config.rb → lib/watirsplash/generators/templates/new_common_project/config.rb.tt} +4 -4
  14. data/{templates/common → lib/watirsplash/generators/templates/new_common_project}/environment.rb +3 -3
  15. data/{templates/common → lib/watirsplash/generators/templates/new_common_project}/lib/common_application_helper.rb +2 -2
  16. data/lib/watirsplash/generators/templates/new_project/.rspec +2 -0
  17. data/lib/watirsplash/generators/templates/new_project/config.rb.tt +22 -0
  18. data/{templates/project/environment.rb → lib/watirsplash/generators/templates/new_project/environment.rb.tt} +4 -5
  19. data/{templates/project/spec/application_helper.rb → lib/watirsplash/generators/templates/new_project/spec/%formatted_name%_helper.rb.tt} +3 -3
  20. data/lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt +40 -0
  21. data/lib/watirsplash/html_formatter.rb +14 -16
  22. data/lib/watirsplash/rspec_patches.rb +74 -0
  23. data/lib/watirsplash/spec_helper.rb +2 -10
  24. data/lib/watirsplash/util.rb +15 -1
  25. data/lib/watirsplash/{watir.rb → watir_patches.rb} +3 -7
  26. data/spec/file_helper_spec.rb +19 -0
  27. data/spec/spec_helper_spec.rb +0 -13
  28. data/spec/spec_match_array_spec.rb +0 -2
  29. data/spec/util_spec.rb +0 -2
  30. data/spec/watir_ie_spec.rb +14 -31
  31. metadata +61 -50
  32. data/lib/watirsplash/element_extensions.rb +0 -70
  33. data/lib/watirsplash/generator.rb +0 -55
  34. data/lib/watirsplash/spec.rb +0 -53
  35. data/lib/watirsplash/wait_helper.rb +0 -44
  36. data/spec/spec.opts +0 -11
  37. data/spec/watir_element_spec.rb +0 -69
  38. data/spec/watir_table_row_spec.rb +0 -45
  39. data/spec/watir_table_spec.rb +0 -78
  40. data/templates/project/config.rb +0 -22
  41. data/templates/project/spec/dummy_spec.rb +0 -44
  42. 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
@@ -1,11 +0,0 @@
1
- --color
2
- --require
3
- watirsplash
4
- --require
5
- watirsplash/html_formatter
6
- --format
7
- WatirSplash::HtmlFormatter:results/index.html
8
- --format
9
- nested
10
- --diff
11
- u