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.
- 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,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rspec/core/formatters/html_formatter'
|
2
2
|
require 'win32/screenshot'
|
3
3
|
require 'pathname'
|
4
4
|
require 'fileutils'
|
@@ -9,14 +9,13 @@ module WatirSplash
|
|
9
9
|
# * saves html of the browser upon test failure
|
10
10
|
# * saves javascript error dialog upon test failure
|
11
11
|
# * saves all files generated/downloaded during the test and shows them in the report
|
12
|
-
class HtmlFormatter < ::
|
12
|
+
class HtmlFormatter < ::RSpec::Core::Formatters::HtmlFormatter
|
13
13
|
|
14
14
|
# currently used browser object
|
15
15
|
# needed for saving of screenshots and html
|
16
16
|
attr_writer :browser
|
17
17
|
|
18
|
-
def initialize(
|
19
|
-
raise "output has to be a file path!" unless output.is_a?(String)
|
18
|
+
def initialize(output) # :nodoc:
|
20
19
|
@output_dir = File.expand_path(File.dirname(output))
|
21
20
|
archive_results
|
22
21
|
|
@@ -24,25 +23,25 @@ module WatirSplash
|
|
24
23
|
@files_dir = File.join(@output_dir, "files")
|
25
24
|
FileUtils.mkdir_p(@files_dir)
|
26
25
|
@files_saved_during_example = []
|
27
|
-
super
|
26
|
+
super(File.open(output, "w"))
|
28
27
|
end
|
29
28
|
|
30
29
|
def example_group_started(example_group) # :nodoc:
|
31
30
|
@files_saved_during_example.clear
|
32
|
-
|
31
|
+
append_extra_information_to_description(example_group)
|
33
32
|
super
|
34
33
|
end
|
35
34
|
|
36
35
|
def example_started(example) # :nodoc:
|
37
36
|
@files_saved_during_example.clear
|
38
|
-
example.description += "#{example.location.scan(/:\d+$/)} (#{Time.now.strftime("%H:%M:%S")})"
|
37
|
+
example.metadata[:description] += "#{example.metadata[:location].scan(/:\d+$/)} (#{Time.now.strftime("%H:%M:%S")})"
|
39
38
|
super
|
40
39
|
end
|
41
40
|
|
42
|
-
def extra_failure_content(
|
41
|
+
def extra_failure_content(exception) # :nodoc:
|
43
42
|
if @browser.exists?
|
44
|
-
save_html
|
45
43
|
save_screenshot
|
44
|
+
save_html
|
46
45
|
end
|
47
46
|
|
48
47
|
content = []
|
@@ -105,14 +104,13 @@ module WatirSplash
|
|
105
104
|
end
|
106
105
|
end
|
107
106
|
|
108
|
-
def
|
107
|
+
def append_extra_information_to_description(example_group)
|
109
108
|
date = Time.now.strftime("%d.%m.%Y")
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
example_group.nested_descriptions.map! {|nested_description| nested_description + appended_description}
|
109
|
+
spec_location, line_no = example_group.metadata[:example_group][:block].to_s.scan(/@(.*)(:\d+)>$/).flatten
|
110
|
+
spec_location = Pathname.new(spec_location)
|
111
|
+
relative_spec_path = spec_location.relative_path_from(Pathname.new(Dir.pwd + "/spec")).to_s
|
112
|
+
appended_description = " @ #{relative_spec_path}#{line_no} (#{date})"
|
113
|
+
example_group.metadata[:example_group][:description] += appended_description
|
116
114
|
end
|
117
115
|
|
118
116
|
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
require 'rspec/core/formatters/html_formatter'
|
2
|
+
require 'rspec/core/formatters/snippet_extractor'
|
3
|
+
|
4
|
+
# patch for https://github.com/rspec/rspec-core/issues/#issue/214
|
5
|
+
module RSpec
|
6
|
+
module Core
|
7
|
+
module Formatters
|
8
|
+
class HtmlFormatter < BaseTextFormatter
|
9
|
+
def extra_failure_content(exception)
|
10
|
+
require 'rspec/core/formatters/snippet_extractor'
|
11
|
+
backtrace = exception.backtrace.map {|line| backtrace_line(line)}
|
12
|
+
backtrace.compact!
|
13
|
+
@snippet_extractor ||= SnippetExtractor.new
|
14
|
+
" <pre class=\"ruby\"><code>#{@snippet_extractor.snippet(backtrace)}</code></pre>"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
class SnippetExtractor
|
19
|
+
def snippet(backtrace)
|
20
|
+
raw_code, line = snippet_for(backtrace[0])
|
21
|
+
highlighted = @@converter.convert(raw_code, false)
|
22
|
+
highlighted << "\n<span class=\"comment\"># gem install syntax to get syntax highlighting</span>" if @@converter.is_a?(NullConverter)
|
23
|
+
post_process(highlighted, line)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
RSpec.configure do |config| #:nodoc:
|
31
|
+
config.include(WatirSplash::SpecHelper)
|
32
|
+
|
33
|
+
config.before(:all) do
|
34
|
+
open_browser_at "about:blank"
|
35
|
+
end
|
36
|
+
|
37
|
+
config.after(:all) do
|
38
|
+
close
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
module RSpec #:nodoc:all
|
43
|
+
module Core
|
44
|
+
class ExampleGroup
|
45
|
+
subject {self}
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# match_array is useful for matching arrays where some elements are regular expressions.
|
51
|
+
# expected_array = ["1", "2", /\d+/, "3"]
|
52
|
+
#
|
53
|
+
# ["1", "2", "66", "3"].should match_array(expected_array)
|
54
|
+
# table(:id => "table_id").to_a.should match_array(expected_array)
|
55
|
+
RSpec::Matchers.define :match_array do |array2|
|
56
|
+
match do |array1|
|
57
|
+
raise "match_array works only with Array objects!" unless array1.is_a?(Array) && array2.is_a?(Array)
|
58
|
+
match?(array1, array2)
|
59
|
+
end
|
60
|
+
|
61
|
+
def match?(array1, array2)
|
62
|
+
array2.each_with_index do |element, i|
|
63
|
+
if element.is_a?(Array)
|
64
|
+
return false unless match?(array1[i], element)
|
65
|
+
elsif element.is_a?(Regexp)
|
66
|
+
return false unless array1[i] =~ element
|
67
|
+
else
|
68
|
+
return false unless array1[i] == element
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
true
|
73
|
+
end
|
74
|
+
end
|
@@ -3,25 +3,17 @@ module WatirSplash
|
|
3
3
|
#
|
4
4
|
# these methods can be used in specs directly
|
5
5
|
module SpecHelper
|
6
|
-
include Watir::WaitHelper
|
7
6
|
|
8
7
|
# opens the browser at specified url
|
9
8
|
def open_browser_at url
|
10
9
|
@browser = Watir::Browser.new
|
11
10
|
@browser.speed = :fast
|
12
11
|
add_checker Watir::PageCheckers::JAVASCRIPT_ERRORS_CHECKER
|
13
|
-
formatter.browser = @browser
|
12
|
+
Util.formatter.browser = @browser
|
14
13
|
goto url
|
15
14
|
maximize
|
16
15
|
end
|
17
|
-
|
18
|
-
# returns WatirSplash::HtmlFormatter object, nil if not in use
|
19
|
-
def formatter
|
20
|
-
@formatter ||= Spec::Runner.options.formatters.find {|f| f.kind_of?(WatirSplash::HtmlFormatter) rescue false}
|
21
|
-
end
|
22
|
-
|
23
|
-
module_function :formatter
|
24
|
-
|
16
|
+
|
25
17
|
def method_missing name, *args #:nodoc:
|
26
18
|
@browser.respond_to?(name) ? @browser.send(name, *args) {yield} : super
|
27
19
|
end
|
data/lib/watirsplash/util.rb
CHANGED
@@ -21,6 +21,20 @@ module WatirSplash
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
# configure RSpec to use documentation and WatirSplash::HtmlFormatter formatters
|
25
|
+
def configure_rspec_formatters
|
26
|
+
config = RSpec.configuration
|
27
|
+
config.color_enabled = true
|
28
|
+
documentation_formatter = config.send(:built_in_formatter, :documentation).new(config.output)
|
29
|
+
results_path = ENV["WATIRSPLASH_RESULTS_PATH"] || "results/index.html"
|
30
|
+
@@html_formatter = WatirSplash::HtmlFormatter.new(results_path)
|
31
|
+
config.instance_variable_set(:@reporter, RSpec::Core::Reporter.new(@@html_formatter, documentation_formatter))
|
32
|
+
end
|
33
|
+
|
34
|
+
def formatter
|
35
|
+
@@html_formatter
|
36
|
+
end
|
37
|
+
|
24
38
|
private
|
25
39
|
|
26
40
|
def common_dir
|
@@ -35,7 +49,7 @@ module WatirSplash
|
|
35
49
|
end
|
36
50
|
|
37
51
|
def has_environment? dir
|
38
|
-
|
52
|
+
File.exists?(File.join(dir, "environment.rb"))
|
39
53
|
end
|
40
54
|
|
41
55
|
end
|
@@ -8,12 +8,10 @@ end
|
|
8
8
|
# patches for Watir
|
9
9
|
module Watir
|
10
10
|
class IE #:nodoc:all
|
11
|
-
|
11
|
+
# trigger autoloading
|
12
12
|
end
|
13
13
|
|
14
14
|
class Element #:nodoc:all
|
15
|
-
include ElementExtensions
|
16
|
-
|
17
15
|
# saves a file with the browser
|
18
16
|
#
|
19
17
|
# clicking the button opens a browser's save as dialog and saves the file document.pdf
|
@@ -25,15 +23,13 @@ module Watir
|
|
25
23
|
path = Pathname.new(file_path)
|
26
24
|
raise "path to #{file_path} has to be absolute!" unless path.absolute?
|
27
25
|
self.click_no_wait
|
28
|
-
|
29
|
-
WaitHelper.wait_until {download_window.present?}
|
30
|
-
download_window.button(:value => "&Save").click
|
26
|
+
RAutomation::Window.new(:title => "File Download").button(:value => "&Save").click
|
31
27
|
|
32
28
|
save_as_window = RAutomation::Window.new(:title => "Save As")
|
33
29
|
save_as_window.text_field(:class => "Edit", :index => 0).set(File.native_path(file_path))
|
34
30
|
save_as_window.button(:value => "&Save").click
|
35
31
|
|
36
|
-
|
32
|
+
Wait.until {File.exists?(file_path)}
|
37
33
|
file_path
|
38
34
|
end
|
39
35
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
describe File do
|
2
|
+
|
3
|
+
before :all do
|
4
|
+
@file_name = "blah.temp"
|
5
|
+
@ext = File.extname(@file_name)
|
6
|
+
@base = File.basename(@file_name, @ext)
|
7
|
+
end
|
8
|
+
|
9
|
+
it ".path returns unique file path" do
|
10
|
+
expected_path = File.join(Dir.pwd, "results/files/#{@base}_.*#{@ext}")
|
11
|
+
File.path(@file_name).should =~ Regexp.new(expected_path)
|
12
|
+
end
|
13
|
+
|
14
|
+
it ".native_path returns unique file path with native path separator" do
|
15
|
+
expected_path = File.join(Dir.pwd, "results/files/#{@base}_.*#{@ext}").gsub("/", "\\")
|
16
|
+
File.native_path(File.path(@file_name)).should =~ Regexp.new(Regexp.escape(expected_path).gsub("\\.\\*", ".*"))
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
data/spec/spec_helper_spec.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require "spec"
|
2
|
-
|
3
1
|
describe WatirSplash::SpecHelper do
|
4
2
|
|
5
3
|
it "opens browser automatically" do
|
@@ -18,17 +16,6 @@ describe WatirSplash::SpecHelper do
|
|
18
16
|
text_field.value == "empty value"
|
19
17
|
end
|
20
18
|
|
21
|
-
it "has File.path and File.native_path methods" do
|
22
|
-
file_name = "blah.temp"
|
23
|
-
ext = File.extname(file_name)
|
24
|
-
base = File.basename(file_name, ext)
|
25
|
-
expected_path = File.join(Dir.pwd, "results/files/#{base}_.*#{ext}")
|
26
|
-
|
27
|
-
File.path(file_name).should =~ Regexp.new(expected_path)
|
28
|
-
expected_path = expected_path.gsub("/", "\\")
|
29
|
-
File.native_path(File.path(file_name)).should =~ Regexp.new(Regexp.escape(expected_path).gsub("\\.\\*", ".*"))
|
30
|
-
end
|
31
|
-
|
32
19
|
it "redirects usages of method 'p' to Watir::IE#p instead of Kernel.p" do
|
33
20
|
goto "http://dl.dropbox.com/u/2731643/WatirSplash/test.html"
|
34
21
|
paragraph = p(:class => "my_pg")
|
data/spec/util_spec.rb
CHANGED
data/spec/watir_ie_spec.rb
CHANGED
@@ -1,28 +1,23 @@
|
|
1
|
-
require "spec"
|
2
|
-
|
3
1
|
describe Watir::IE do
|
4
2
|
|
5
3
|
before :each do
|
6
4
|
goto "http://dl.dropbox.com/u/2731643/WatirSplash/test.html"
|
7
5
|
end
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
7
|
+
context Watir::Element do
|
8
|
+
context "#save_as" do
|
9
|
+
it "saves file with the browser" do
|
10
|
+
begin
|
11
|
+
file_path = link(:text => "Download").save_as(File.path("download.zip"))
|
12
|
+
File.read(file_path).should == "this is a 'zip' file!"
|
13
|
+
ensure
|
14
|
+
FileUtils.rm file_path rescue nil
|
15
|
+
end
|
16
|
+
end
|
19
17
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
File.read(file_path).should == "this is a 'zip' file!"
|
24
|
-
ensure
|
25
|
-
FileUtils.rm file_path rescue nil
|
18
|
+
it "allows only absolute paths" do
|
19
|
+
lambda {link(:text => "Download").save_as("download.zip")}.should raise_exception
|
20
|
+
end
|
26
21
|
end
|
27
22
|
end
|
28
23
|
|
@@ -35,23 +30,11 @@ describe Watir::IE do
|
|
35
30
|
wait_until(5) {field.value =~ /#{File.basename(__FILE__)}/}
|
36
31
|
end
|
37
32
|
|
38
|
-
it "doesn't allow to use
|
33
|
+
it "doesn't allow to use with non existing files" do
|
39
34
|
field = file_field(:id => "upload")
|
40
35
|
lambda {field.set "upload.zip"}.should raise_exception
|
41
36
|
end
|
42
37
|
end
|
43
38
|
end
|
44
39
|
|
45
|
-
it "has wait_until" do
|
46
|
-
lambda {wait_until(0.5) {sleep 0.1; true}}.should_not raise_exception
|
47
|
-
lambda {wait_until(0.5) {sleep 0.1; false}}.should raise_exception(Watir::WaitHelper::TimeoutError)
|
48
|
-
end
|
49
|
-
|
50
|
-
it "closes the browser even when Watir::IE#run_error_checks throws an exception" do
|
51
|
-
@browser.add_checker lambda {raise "let's fail IE#wait in IE#close"}
|
52
|
-
@browser.should exist
|
53
|
-
lambda {@browser.close}.should_not raise_exception
|
54
|
-
@browser.should_not exist
|
55
|
-
end
|
56
|
-
|
57
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watirsplash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.2.14
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jarmo Pertman
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - "="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 9
|
30
30
|
segments:
|
31
31
|
- 1
|
32
|
-
-
|
33
|
-
-
|
34
|
-
version: 1.
|
32
|
+
- 7
|
33
|
+
- 1
|
34
|
+
version: 1.7.1
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
@@ -40,18 +40,17 @@ dependencies:
|
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 11
|
46
46
|
segments:
|
47
|
-
-
|
48
|
-
-
|
49
|
-
|
50
|
-
version: 1.3.0
|
47
|
+
- 2
|
48
|
+
- 4
|
49
|
+
version: "2.4"
|
51
50
|
type: :runtime
|
52
51
|
version_requirements: *id002
|
53
52
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
53
|
+
name: require_all
|
55
54
|
prerelease: false
|
56
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
56
|
none: false
|
@@ -65,27 +64,26 @@ dependencies:
|
|
65
64
|
type: :runtime
|
66
65
|
version_requirements: *id003
|
67
66
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
67
|
+
name: syntax
|
69
68
|
prerelease: false
|
70
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
71
70
|
none: false
|
72
71
|
requirements:
|
73
|
-
- -
|
72
|
+
- - ">="
|
74
73
|
- !ruby/object:Gem::Version
|
75
74
|
hash: 3
|
76
75
|
segments:
|
77
76
|
- 0
|
78
|
-
|
79
|
-
version: "0.4"
|
77
|
+
version: "0"
|
80
78
|
type: :runtime
|
81
79
|
version_requirements: *id004
|
82
80
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
81
|
+
name: thor
|
84
82
|
prerelease: false
|
85
83
|
requirement: &id005 !ruby/object:Gem::Requirement
|
86
84
|
none: false
|
87
85
|
requirements:
|
88
|
-
- -
|
86
|
+
- - ~>
|
89
87
|
- !ruby/object:Gem::Version
|
90
88
|
hash: 3
|
91
89
|
segments:
|
@@ -94,21 +92,22 @@ dependencies:
|
|
94
92
|
type: :runtime
|
95
93
|
version_requirements: *id005
|
96
94
|
- !ruby/object:Gem::Dependency
|
97
|
-
name:
|
95
|
+
name: rautomation
|
98
96
|
prerelease: false
|
99
97
|
requirement: &id006 !ruby/object:Gem::Requirement
|
100
98
|
none: false
|
101
99
|
requirements:
|
102
|
-
- -
|
100
|
+
- - ~>
|
103
101
|
- !ruby/object:Gem::Version
|
104
102
|
hash: 3
|
105
103
|
segments:
|
106
104
|
- 0
|
107
|
-
|
105
|
+
- 4
|
106
|
+
version: "0.4"
|
108
107
|
type: :runtime
|
109
108
|
version_requirements: *id006
|
110
109
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
110
|
+
name: require_all
|
112
111
|
prerelease: false
|
113
112
|
requirement: &id007 !ruby/object:Gem::Requirement
|
114
113
|
none: false
|
@@ -122,9 +121,23 @@ dependencies:
|
|
122
121
|
type: :runtime
|
123
122
|
version_requirements: *id007
|
124
123
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
124
|
+
name: syntax
|
126
125
|
prerelease: false
|
127
126
|
requirement: &id008 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
type: :runtime
|
136
|
+
version_requirements: *id008
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: win32screenshot
|
139
|
+
prerelease: false
|
140
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
128
141
|
none: false
|
129
142
|
requirements:
|
130
143
|
- - ~>
|
@@ -136,7 +149,7 @@ dependencies:
|
|
136
149
|
- 2
|
137
150
|
version: 1.0.2
|
138
151
|
type: :runtime
|
139
|
-
version_requirements: *
|
152
|
+
version_requirements: *id009
|
140
153
|
description: WatirSplash makes testing of web applications splashin' easy by combining best features of Watir, RSpec and Ruby!
|
141
154
|
email: jarmo.p@gmail.com
|
142
155
|
executables:
|
@@ -155,31 +168,29 @@ files:
|
|
155
168
|
- VERSION
|
156
169
|
- bin/watirsplash
|
157
170
|
- lib/watirsplash.rb
|
158
|
-
- lib/watirsplash/
|
171
|
+
- lib/watirsplash/cli.rb
|
159
172
|
- lib/watirsplash/file_helper.rb
|
160
|
-
- lib/watirsplash/
|
173
|
+
- lib/watirsplash/generators/migrate_project.rb
|
174
|
+
- lib/watirsplash/generators/new_common_project.rb
|
175
|
+
- lib/watirsplash/generators/new_project.rb
|
176
|
+
- lib/watirsplash/generators/templates/new_common_project/config.rb.tt
|
177
|
+
- lib/watirsplash/generators/templates/new_common_project/environment.rb
|
178
|
+
- lib/watirsplash/generators/templates/new_common_project/lib/common_application_helper.rb
|
179
|
+
- lib/watirsplash/generators/templates/new_project/.rspec
|
180
|
+
- lib/watirsplash/generators/templates/new_project/config.rb.tt
|
181
|
+
- lib/watirsplash/generators/templates/new_project/environment.rb.tt
|
182
|
+
- lib/watirsplash/generators/templates/new_project/spec/%formatted_name%_helper.rb.tt
|
183
|
+
- lib/watirsplash/generators/templates/new_project/spec/dummy_spec.rb.tt
|
161
184
|
- lib/watirsplash/html_formatter.rb
|
162
|
-
- lib/watirsplash/
|
185
|
+
- lib/watirsplash/rspec_patches.rb
|
163
186
|
- lib/watirsplash/spec_helper.rb
|
164
187
|
- lib/watirsplash/util.rb
|
165
|
-
- lib/watirsplash/
|
166
|
-
-
|
167
|
-
- spec/spec.opts
|
188
|
+
- lib/watirsplash/watir_patches.rb
|
189
|
+
- spec/file_helper_spec.rb
|
168
190
|
- spec/spec_helper_spec.rb
|
169
191
|
- spec/spec_match_array_spec.rb
|
170
192
|
- spec/util_spec.rb
|
171
|
-
- spec/watir_element_spec.rb
|
172
193
|
- spec/watir_ie_spec.rb
|
173
|
-
- spec/watir_table_row_spec.rb
|
174
|
-
- spec/watir_table_spec.rb
|
175
|
-
- templates/common/config.rb
|
176
|
-
- templates/common/environment.rb
|
177
|
-
- templates/common/lib/common_application_helper.rb
|
178
|
-
- templates/project/config.rb
|
179
|
-
- templates/project/environment.rb
|
180
|
-
- templates/project/spec/application_helper.rb
|
181
|
-
- templates/project/spec/dummy_spec.rb
|
182
|
-
- templates/project/spec/spec.opts
|
183
194
|
has_rdoc: true
|
184
195
|
homepage: http://github.com/jarmo/WatirSplash
|
185
196
|
licenses: []
|
@@ -187,9 +198,11 @@ licenses: []
|
|
187
198
|
post_install_message: |-
|
188
199
|
*************************
|
189
200
|
|
190
|
-
Thank you for installing WatirSplash 0.
|
201
|
+
Thank you for installing WatirSplash 1.0.0! Don't forget to take a look at the README and History files!
|
202
|
+
|
203
|
+
Execute `watirsplash new` under your project's directory to generate default project structure.
|
191
204
|
|
192
|
-
|
205
|
+
PS! If you are using older WatirSplash version <= 0.2.14, then execute `watirsplash migrate` under ui-test and ui-test-common!
|
193
206
|
|
194
207
|
*************************
|
195
208
|
rdoc_options:
|
@@ -226,12 +239,10 @@ rubyforge_project:
|
|
226
239
|
rubygems_version: 1.3.7
|
227
240
|
signing_key:
|
228
241
|
specification_version: 3
|
229
|
-
summary: watirsplash 0.
|
242
|
+
summary: watirsplash 1.0.0
|
230
243
|
test_files:
|
244
|
+
- spec/file_helper_spec.rb
|
231
245
|
- spec/spec_helper_spec.rb
|
232
246
|
- spec/spec_match_array_spec.rb
|
233
247
|
- spec/util_spec.rb
|
234
|
-
- spec/watir_element_spec.rb
|
235
248
|
- spec/watir_ie_spec.rb
|
236
|
-
- spec/watir_table_row_spec.rb
|
237
|
-
- spec/watir_table_spec.rb
|