watirspec 0.1.8 → 0.1.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === Version 0.1.9 / 2010-05-01
2
+
3
+ * Changed name of the library to WatirSplash due to name conflict
4
+ - this means that all watirspec commands are now obsolete and you have to use watirsplash commands instead
5
+ - all WatiRspec constants (module names etc) are now named as WatirSplash
6
+
1
7
  === Version 0.1.8 / 2010-04-19
2
8
 
3
9
  * tidied up some code, no changes in functionality
@@ -1,3 +1,10 @@
1
+ warning_message = "*" * 80
2
+ warning_message << "\nWatiRspec is DEPRECATED!!!"
3
+ warning_message << "\nplease use WatirSplash instead:"
4
+ warning_message << "\n\ncheck out WatirSplash homepage at http://github.com/jarmo/WatirSplash/"
5
+ warning_message << "\n" << "*" * 80
6
+ Kernel.warn warning_message
7
+
1
8
  require "rubygems"
2
9
  require "require_all"
3
10
  require "spec"
@@ -1,3 +1,3 @@
1
1
  module WatiRspec
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9.1"
3
3
  end
@@ -10,22 +10,22 @@ describe Watir::TableRow do
10
10
 
11
11
  it "#to_a works with regular row" do
12
12
  first_row = table(:id => "normal")[1]
13
- first_row.to_a.should =~ %w[1 2 3]
13
+ first_row.to_a.should == ["1", "2", "3"]
14
14
  end
15
15
 
16
16
  it "#to_a works with headers in row" do
17
17
  first_row = table(:id => "headers")[1]
18
- first_row.to_a.should =~ %w[1 2 3 4]
18
+ first_row.to_a.should == ["1", "2", "3", "4"]
19
19
  end
20
20
 
21
21
  it "#to_a works with nested tables" do
22
22
  second_row = table(:id => "nested")[2]
23
- second_row.to_a.should =~ [[%w[11 12], %w[13 14]], "3"]
23
+ second_row.to_a.should == [[["11", "12"], ["13","14"]], "3"]
24
24
  end
25
25
 
26
26
  it "#to_a works with deep-nested tables" do
27
27
  second_row = table(:id => "deepnested")[2]
28
- second_row.to_a.should =~ [[%w[11 12],
28
+ second_row.to_a.should == [[["11", "12"],
29
29
  [[["404", "405"], ["406", "407"]], "14"]], "3"]
30
30
  end
31
31
 
@@ -10,61 +10,70 @@ describe Watir::Table do
10
10
 
11
11
  it "#to_a works with regular table" do
12
12
  expected_table = [
13
- %w[1 2 3],
14
- %w[4 5 6],
15
- %w[7 8 9]
13
+ ["1", "2", "3"],
14
+ ["4", "5", "6"],
15
+ ["7", "8", "9"]
16
16
  ]
17
- table(:id => "normal").to_a.should match_array(expected_table)
17
+ table(:id => "normal").to_a.should == expected_table
18
18
  end
19
19
 
20
20
  it "#to_a works with table with headers" do
21
21
  expected_table = [
22
- %w[1 2 3 4],
23
- %w[5 6 7 8],
24
- %w[9 10 11 12],
22
+ ["1", "2", "3", "4"],
23
+ ["5", "6", "7", "8"],
24
+ ["9", "10", "11", "12"]
25
25
  ]
26
- table(:id => "headers").to_a.should match_array(expected_table)
26
+ table(:id => "headers").to_a.should == expected_table
27
27
  end
28
28
 
29
29
  it "#to_a works with nested tables" do
30
- expected_table = [
31
- %w[1 2],
32
- [[%w[11 12], %w[13 14]], "3"]
33
- ]
34
- table(:id => "nested").to_a.should match_array(expected_table)
30
+ expected_table =
31
+ [
32
+ ["1", "2"],
33
+ [[["11", "12"],
34
+ ["13", "14"]], "3"]
35
+ ]
36
+ table(:id => "nested").to_a.should == expected_table
35
37
  end
36
38
 
37
39
  it "#to_a works with nested table with non-direct child" do
38
- expected_table = [
39
- %w[1 2],
40
- [[%w[11 12], %w[13 14]], "3"]
41
- ]
40
+ expected_table =
41
+ [
42
+ ["1", "2"],
43
+ [[["11", "12"],
44
+ ["13", "14"]], "3"]
45
+ ]
42
46
 
43
- table(:id => "nestednondirectchild").to_a.should match_array(expected_table)
47
+ table(:id => "nestednondirectchild").to_a.should == expected_table
44
48
  end
45
49
 
46
50
  it "#to_a works with deep-nested tables" do
47
- expected_table = [
48
- %w[1 2],
49
- [[%w[11 12], [[["404", "405"], ["406", "407"]], "14"]], "3"]
50
- ]
51
- table(:id => "deepnested").to_a.should match_array(expected_table)
51
+ expected_table =
52
+ [
53
+ ["1", "2"],
54
+ [[["11", "12"],
55
+ [[["404", "405"],
56
+ ["406", "407"]], "14"]], "3"]
57
+ ]
58
+ table(:id => "deepnested").to_a.should == expected_table
52
59
  end
53
60
 
54
61
  it "#to_a works with colspan" do
55
- expected_table = [
56
- %w[1 2],
57
- ["3"]
58
- ]
59
- table(:id => "colspan").to_a.should match_array(expected_table)
62
+ expected_table =
63
+ [
64
+ ["1", "2"],
65
+ ["3"]
66
+ ]
67
+ table(:id => "colspan").to_a.should == expected_table
60
68
  end
61
69
 
62
70
  it "#to_a works with rowspan" do
63
- expected_table = [
64
- %w[1 2],
65
- %w[3 4],
66
- %w[5]
67
- ]
71
+ expected_table =
72
+ [
73
+ ["1", "2"],
74
+ ["3", "4"],
75
+ ["5"]
76
+ ]
68
77
  table(:id => "rowspan").to_a.should match_array(expected_table)
69
78
  end
70
79
  end
metadata CHANGED
@@ -5,8 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 8
9
- version: 0.1.8
8
+ - 9
9
+ - 1
10
+ version: 0.1.9.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Jarmo Pertman
@@ -14,41 +15,13 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-19 00:00:00 +03:00
18
+ date: 2010-05-01 00:00:00 +03:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: watir
22
+ name: watirsplash
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 6
30
- - 5
31
- version: 1.6.5
32
- type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rspec
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 3
44
- - 0
45
- version: 1.3.0
46
- type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: diff-lcs
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
25
  requirements:
53
26
  - - ">="
54
27
  - !ruby/object:Gem::Version
@@ -56,67 +29,7 @@ dependencies:
56
29
  - 0
57
30
  version: "0"
58
31
  type: :runtime
59
- version_requirements: *id003
60
- - !ruby/object:Gem::Dependency
61
- name: require_all
62
- prerelease: false
63
- requirement: &id004 !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
70
- type: :runtime
71
- version_requirements: *id004
72
- - !ruby/object:Gem::Dependency
73
- name: rmagick
74
- prerelease: false
75
- requirement: &id005 !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- segments:
80
- - 0
81
- version: "0"
82
- type: :runtime
83
- version_requirements: *id005
84
- - !ruby/object:Gem::Dependency
85
- name: syntax
86
- prerelease: false
87
- requirement: &id006 !ruby/object:Gem::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- segments:
92
- - 0
93
- version: "0"
94
- type: :runtime
95
- version_requirements: *id006
96
- - !ruby/object:Gem::Dependency
97
- name: win32console
98
- prerelease: false
99
- requirement: &id007 !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 0
105
- version: "0"
106
- type: :runtime
107
- version_requirements: *id007
108
- - !ruby/object:Gem::Dependency
109
- name: win32screenshot
110
- prerelease: false
111
- requirement: &id008 !ruby/object:Gem::Requirement
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- segments:
116
- - 0
117
- version: "0"
118
- type: :runtime
119
- version_requirements: *id008
32
+ version_requirements: *id001
120
33
  description: Combines best features of Watir, RSpec and Ruby for browser-based functional testing.
121
34
  email:
122
35
  - jarmo.p@gmail.com
@@ -164,13 +77,12 @@ homepage: http://github.com/jarmo/WatiRspec
164
77
  licenses: []
165
78
 
166
79
  post_install_message: |-
167
- *************************
168
-
169
- Thank you for installing WatiRspec 0.1.8! Don't forget to take a look at README file!
170
-
171
- Execute "watirspec generate" under your project's directory to generate default project structure.
80
+ ********************************************************************************
81
+ WatiRspec is DEPRECATED!!!
82
+ please use WatirSplash instead:
172
83
 
173
- *************************
84
+ check out WatirSplash homepage at http://github.com/jarmo/WatirSplash/
85
+ ********************************************************************************
174
86
  rdoc_options:
175
87
  - --main
176
88
  - README.rdoc
@@ -200,6 +112,6 @@ rubyforge_project:
200
112
  rubygems_version: 1.3.6
201
113
  signing_key:
202
114
  specification_version: 3
203
- summary: watirspec 0.1.8
115
+ summary: watirspec 0.1.9.1
204
116
  test_files: []
205
117