taza 2.1.0 → 4.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.
- checksums.yaml +5 -5
- data/History.txt +8 -0
- data/README.md +4 -4
- data/lib/taza/browser.rb +1 -29
- data/lib/taza/entity.rb +1 -2
- data/lib/taza/fixture.rb +1 -2
- data/lib/taza/generators/project_generator.rb +5 -5
- data/lib/taza/page.rb +3 -5
- data/lib/taza/site.rb +6 -2
- data/lib/taza/version.rb +1 -1
- data/lib/taza.rb +0 -4
- data/spec/generators/flow_generator_spec.rb +4 -4
- data/spec/generators/page_generator_spec.rb +5 -5
- data/spec/generators/partial_generator_spec.rb +4 -4
- data/spec/generators/project_generator_spec.rb +8 -8
- data/spec/generators/site_generator_spec.rb +4 -4
- data/spec/spec_helper.rb +7 -9
- data/spec/taza/browser_spec.rb +9 -9
- data/spec/taza/fixture_spec.rb +1 -2
- data/spec/taza/fixtures_spec.rb +9 -8
- data/spec/taza/page_module_spec.rb +5 -5
- data/spec/taza/page_spec.rb +19 -17
- data/spec/taza/settings_spec.rb +1 -1
- data/spec/taza/site_fixtures_spec.rb +9 -4
- data/spec/taza/site_spec.rb +9 -10
- metadata +36 -92
- data/.gitignore +0 -6
- data/.rspec +0 -1
- data/.ruby-gemset +0 -1
- data/.travis.yml +0 -39
- data/Gemfile +0 -3
- data/Gemfile.activesupport-3.2 +0 -5
- data/Gemfile.activesupport-4.0 +0 -5
- data/Gemfile.activesupport-4.1 +0 -5
- data/Gemfile.activesupport-4.2 +0 -5
- data/Gemfile.activesupport-5.0 +0 -5
- data/Manifest.txt +0 -61
- data/Rakefile +0 -5
- data/TODO +0 -22
- data/lib/extensions/array.rb +0 -10
- data/lib/extensions/hash.rb +0 -15
- data/lib/extensions/object.rb +0 -6
- data/lib/extensions/string.rb +0 -22
- data/spec/taza/array_spec.rb +0 -17
- data/spec/taza/hash_spec.rb +0 -15
- data/spec/taza/string_spec.rb +0 -12
- data/taza.gemspec +0 -31
data/spec/taza/page_spec.rb
CHANGED
@@ -4,8 +4,9 @@ require 'taza/page'
|
|
4
4
|
describe Taza::Page do
|
5
5
|
|
6
6
|
class ElementAndFilterContextExample < Taza::Page
|
7
|
-
element(:sample_element) {browser}
|
7
|
+
element(:sample_element) { browser }
|
8
8
|
filter(:sample_filter, :sample_element)
|
9
|
+
|
9
10
|
def sample_filter
|
10
11
|
browser
|
11
12
|
end
|
@@ -14,6 +15,7 @@ describe Taza::Page do
|
|
14
15
|
class RecursiveFilterExample < Taza::Page
|
15
16
|
element(:foo) {}
|
16
17
|
filter :sample_filter
|
18
|
+
|
17
19
|
def sample_filter
|
18
20
|
foo
|
19
21
|
true
|
@@ -26,12 +28,12 @@ describe Taza::Page do
|
|
26
28
|
end
|
27
29
|
|
28
30
|
it "should execute an element's block with the params provided for its method" do
|
29
|
-
Taza::Page.element(:boo){|baz| baz}
|
31
|
+
Taza::Page.element(:boo) { |baz| baz }
|
30
32
|
expect(Taza::Page.new.boo("rofl")).to eql 'rofl'
|
31
|
-
|
33
|
+
end
|
32
34
|
|
33
35
|
it "element's name can not be nil" do
|
34
|
-
expect{ Taza::Page.element(nil){
|
36
|
+
expect { Taza::Page.element(nil) {} }.to raise_error(Taza::ElementError)
|
35
37
|
end
|
36
38
|
|
37
39
|
it "should execute elements and filters in the context of the page instance" do
|
@@ -62,25 +64,25 @@ describe Taza::Page do
|
|
62
64
|
end
|
63
65
|
|
64
66
|
it "should filter all elements if element argument is not provided" do
|
65
|
-
expect
|
66
|
-
expect
|
67
|
+
expect { FilterAllElements.new.apple }.to raise_error(Taza::FilterError)
|
68
|
+
expect { FilterAllElements.new.foo }.to raise_error(Taza::FilterError)
|
67
69
|
end
|
68
70
|
|
69
71
|
it "should have empty elements on a new class" do
|
70
|
-
foo = Class::new(superclass=Taza::Page)
|
72
|
+
foo = Class::new(superclass = Taza::Page)
|
71
73
|
expect(foo.elements).to_not be_nil
|
72
74
|
expect(foo.elements).to be_empty
|
73
75
|
end
|
74
76
|
|
75
77
|
it "should have empty filters on a new class" do
|
76
|
-
foo = Class::new(superclass=Taza::Page)
|
78
|
+
foo = Class::new(superclass = Taza::Page)
|
77
79
|
expect(foo.filters).to_not be_nil
|
78
80
|
expect(foo.filters).to be_empty
|
79
81
|
end
|
80
82
|
|
81
83
|
class FilterAnElement < Taza::Page
|
82
84
|
attr_accessor :called_element_method
|
83
|
-
element(:false_item) { @called_element_method = true}
|
85
|
+
element(:false_item) { @called_element_method = true }
|
84
86
|
filter :false_filter, :false_item
|
85
87
|
|
86
88
|
def false_filter
|
@@ -89,21 +91,21 @@ describe Taza::Page do
|
|
89
91
|
end
|
90
92
|
|
91
93
|
it "should raise a error if an elements is called and its filter returns false" do
|
92
|
-
expect
|
94
|
+
expect { FilterAnElement.new.false_item }.to raise_error(Taza::FilterError)
|
93
95
|
end
|
94
96
|
|
95
97
|
it "should not call element block if filters fail" do
|
96
98
|
page = FilterAnElement.new
|
97
|
-
expect
|
99
|
+
expect { page.false_item }.to raise_error(Taza::FilterError)
|
98
100
|
expect(page.called_element_method).to_not be true
|
99
101
|
end
|
100
102
|
|
101
103
|
it "should not allow more than one element descriptor with the same element name" do
|
102
|
-
expect
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
}
|
104
|
+
expect {
|
105
|
+
class DuplicateElements < Taza::Page
|
106
|
+
element(:foo) { true }
|
107
|
+
element(:foo) { false }
|
108
|
+
end
|
109
|
+
}.to raise_error(Taza::ElementError)
|
108
110
|
end
|
109
111
|
end
|
data/spec/taza/settings_spec.rb
CHANGED
@@ -67,7 +67,7 @@ describe Taza::Settings do
|
|
67
67
|
|
68
68
|
it "should raise error for a config file that doesnot exist" do
|
69
69
|
Taza::Settings.stubs(:path).returns("#{@original_directory}/spec/sandbox/file_not_exists.yml")
|
70
|
-
expect
|
70
|
+
expect{Taza::Settings.config}.to raise_error(ArgumentError)
|
71
71
|
end
|
72
72
|
|
73
73
|
it "should path point at root directory" do
|
@@ -1,14 +1,19 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
describe "Site Specific Fixtures" do
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
|
4
|
+
before do
|
5
|
+
stub_path = File.join(@original_directory, 'spec', 'sandbox', 'fixtures', '')
|
6
|
+
Taza::Fixture.stubs(:base_path).returns(stub_path)
|
7
|
+
Taza.load_fixtures
|
8
|
+
self.class.include(Taza::Fixtures::FooSite)
|
9
|
+
end
|
6
10
|
|
7
11
|
it "should be able to access fixtures in sub-folders" do
|
8
12
|
expect(bars(:foo).name).to eql 'foo'
|
9
13
|
end
|
10
14
|
|
11
15
|
it "should not be able to access non-site-specific fixtures" do
|
12
|
-
expect
|
16
|
+
expect { foos(:gap) }.to raise_error(NoMethodError)
|
13
17
|
end
|
18
|
+
|
14
19
|
end
|
data/spec/taza/site_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe Taza::Site do
|
|
11
11
|
before(:all) do
|
12
12
|
Foo = Class.new(Taza::Site)
|
13
13
|
end
|
14
|
-
#TODO: we need to clean up these tests and remove the warning below
|
14
|
+
# TODO: we need to clean up these tests and remove the warning below
|
15
15
|
#/Users/bisbot/Projects/Taza/taza/spec/taza/site_spec.rb:15: warning: already initialized constant Foo
|
16
16
|
before :each do
|
17
17
|
@pages_path = File.join(@original_directory, 'spec', 'sandbox', 'pages', 'foo', '**', '*.rb')
|
@@ -74,7 +74,7 @@ describe Taza::Site do
|
|
74
74
|
browser = stub_browser
|
75
75
|
browser.expects(:close)
|
76
76
|
Taza::Browser.stubs(:create).returns(browser)
|
77
|
-
expect
|
77
|
+
expect { Foo.new { |site| raise StandardError } }.to raise_error(StandardError)
|
78
78
|
end
|
79
79
|
|
80
80
|
it 'should not close browser if block not given' do
|
@@ -90,21 +90,21 @@ describe Taza::Site do
|
|
90
90
|
browser.stubs(:goto).raises(StandardError, 'ErrorOnBrowserGoto')
|
91
91
|
browser.expects(:close).never
|
92
92
|
Taza::Browser.stubs(:create).returns(browser)
|
93
|
-
expect
|
93
|
+
expect { Foo.new }.to raise_error(StandardError, 'ErrorOnBrowserGoto')
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'should raise browser close error if no other errors' do
|
97
97
|
browser = stub_browser
|
98
98
|
browser.expects(:close).raises(StandardError, 'BrowserCloseError')
|
99
99
|
Taza::Browser.stubs(:create).returns(browser)
|
100
|
-
expect
|
100
|
+
expect { Foo.new {} }.to raise_error(StandardError, 'BrowserCloseError')
|
101
101
|
end
|
102
102
|
|
103
103
|
it 'should raise error inside block if both it and browser.close throws an error' do
|
104
104
|
browser = stub_browser
|
105
105
|
browser.expects(:close).raises(StandardError, 'BrowserCloseError')
|
106
106
|
Taza::Browser.stubs(:create).returns(browser)
|
107
|
-
expect
|
107
|
+
expect { Foo.new { |site| raise StandardError, 'innererror' } }.to raise_error(StandardError, 'innererror')
|
108
108
|
end
|
109
109
|
|
110
110
|
it 'should close a browser if block given' do
|
@@ -175,7 +175,7 @@ describe Taza::Site do
|
|
175
175
|
browser.expects(:close).then(browser_state.is('off'))
|
176
176
|
browser.expects(:doit).when(browser_state.is('on'))
|
177
177
|
Taza::Site.before_browser_closes { |browser| browser.doit }
|
178
|
-
expect
|
178
|
+
expect { Foo.new { |site| raise StandardError, 'innererror' } }.to raise_error(StandardError, 'innererror')
|
179
179
|
end
|
180
180
|
|
181
181
|
it 'should still close its browser if #before_browser_closes raises an exception' do
|
@@ -183,7 +183,7 @@ describe Taza::Site do
|
|
183
183
|
Taza::Browser.stubs(:create).returns(browser)
|
184
184
|
browser.expects(:close)
|
185
185
|
Taza::Site.before_browser_closes { |browser| raise StandardError, 'foo error' }
|
186
|
-
expect
|
186
|
+
expect { Foo.new {} }.to raise_error(StandardError, 'foo error')
|
187
187
|
end
|
188
188
|
|
189
189
|
it 'should not close a browser it did not make' do
|
@@ -199,7 +199,6 @@ describe Taza::Site do
|
|
199
199
|
Foo.new() {}
|
200
200
|
end
|
201
201
|
|
202
|
-
|
203
202
|
module Zoro
|
204
203
|
class Zoro < ::Taza::Site
|
205
204
|
end
|
@@ -240,7 +239,7 @@ describe Taza::Site do
|
|
240
239
|
f.baz(:another_module) do |baz|
|
241
240
|
barzor = baz
|
242
241
|
end
|
243
|
-
expect
|
242
|
+
expect { barzor.other_element }.to raise_error(NoMethodError)
|
244
243
|
end
|
245
244
|
|
246
245
|
it 'should have a way to keep the browser instance open' do
|
@@ -256,6 +255,6 @@ describe Taza::Site do
|
|
256
255
|
browser.expects(:close).never
|
257
256
|
Taza::Browser.stubs(:create).returns(browser)
|
258
257
|
Taza::Site.donot_close_browser
|
259
|
-
expect
|
258
|
+
expect { Foo.new { |site| raise StandardError } }.to raise_error(StandardError)
|
260
259
|
end
|
261
260
|
end
|
metadata
CHANGED
@@ -1,157 +1,128 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taza
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Anderson
|
8
8
|
- Pedro Nascimento
|
9
9
|
- Oscar Rieken
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2025-04-13 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: rake
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.9.2
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: 0.9.2
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: mocha
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 0.9.3
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 0.9.3
|
43
14
|
- !ruby/object:Gem::Dependency
|
44
15
|
name: user-choices
|
45
16
|
requirement: !ruby/object:Gem::Requirement
|
46
17
|
requirements:
|
47
18
|
- - "~>"
|
48
19
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.1.
|
20
|
+
version: 1.1.0
|
50
21
|
type: :runtime
|
51
22
|
prerelease: false
|
52
23
|
version_requirements: !ruby/object:Gem::Requirement
|
53
24
|
requirements:
|
54
25
|
- - "~>"
|
55
26
|
- !ruby/object:Gem::Version
|
56
|
-
version: 1.1.
|
27
|
+
version: 1.1.0
|
57
28
|
- !ruby/object:Gem::Dependency
|
58
29
|
name: Selenium
|
59
30
|
requirement: !ruby/object:Gem::Requirement
|
60
31
|
requirements:
|
61
32
|
- - "~>"
|
62
33
|
- !ruby/object:Gem::Version
|
63
|
-
version: 1.1.
|
34
|
+
version: 1.1.0
|
64
35
|
type: :runtime
|
65
36
|
prerelease: false
|
66
37
|
version_requirements: !ruby/object:Gem::Requirement
|
67
38
|
requirements:
|
68
39
|
- - "~>"
|
69
40
|
- !ruby/object:Gem::Version
|
70
|
-
version: 1.1.
|
41
|
+
version: 1.1.0
|
71
42
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
43
|
+
name: watir
|
73
44
|
requirement: !ruby/object:Gem::Requirement
|
74
45
|
requirements:
|
75
46
|
- - "~>"
|
76
47
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
48
|
+
version: 7.3.0
|
78
49
|
type: :runtime
|
79
50
|
prerelease: false
|
80
51
|
version_requirements: !ruby/object:Gem::Requirement
|
81
52
|
requirements:
|
82
53
|
- - "~>"
|
83
54
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
55
|
+
version: 7.3.0
|
85
56
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
57
|
+
name: activesupport
|
87
58
|
requirement: !ruby/object:Gem::Requirement
|
88
59
|
requirements:
|
89
|
-
- - "
|
60
|
+
- - ">="
|
90
61
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
62
|
+
version: 7.1.0
|
92
63
|
type: :runtime
|
93
64
|
prerelease: false
|
94
65
|
version_requirements: !ruby/object:Gem::Requirement
|
95
66
|
requirements:
|
96
|
-
- - "
|
67
|
+
- - ">="
|
97
68
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
69
|
+
version: 7.1.0
|
99
70
|
- !ruby/object:Gem::Dependency
|
100
|
-
name:
|
71
|
+
name: thor
|
101
72
|
requirement: !ruby/object:Gem::Requirement
|
102
73
|
requirements:
|
103
|
-
- - "
|
74
|
+
- - "~>"
|
104
75
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
76
|
+
version: 1.3.0
|
106
77
|
type: :runtime
|
107
78
|
prerelease: false
|
108
79
|
version_requirements: !ruby/object:Gem::Requirement
|
109
80
|
requirements:
|
110
|
-
- - "
|
81
|
+
- - "~>"
|
111
82
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
83
|
+
version: 1.3.0
|
113
84
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
85
|
+
name: mocha
|
115
86
|
requirement: !ruby/object:Gem::Requirement
|
116
87
|
requirements:
|
117
|
-
- - "
|
88
|
+
- - "~>"
|
118
89
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
120
|
-
type: :
|
90
|
+
version: 2.7.0
|
91
|
+
type: :development
|
121
92
|
prerelease: false
|
122
93
|
version_requirements: !ruby/object:Gem::Requirement
|
123
94
|
requirements:
|
124
|
-
- - "
|
95
|
+
- - "~>"
|
125
96
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
97
|
+
version: 2.7.0
|
127
98
|
- !ruby/object:Gem::Dependency
|
128
|
-
name:
|
99
|
+
name: rake
|
129
100
|
requirement: !ruby/object:Gem::Requirement
|
130
101
|
requirements:
|
131
|
-
- - "
|
102
|
+
- - "~>"
|
132
103
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
134
|
-
type: :
|
104
|
+
version: 13.2.0
|
105
|
+
type: :development
|
135
106
|
prerelease: false
|
136
107
|
version_requirements: !ruby/object:Gem::Requirement
|
137
108
|
requirements:
|
138
|
-
- - "
|
109
|
+
- - "~>"
|
139
110
|
- !ruby/object:Gem::Version
|
140
|
-
version:
|
111
|
+
version: 13.2.0
|
141
112
|
- !ruby/object:Gem::Dependency
|
142
113
|
name: rspec
|
143
114
|
requirement: !ruby/object:Gem::Requirement
|
144
115
|
requirements:
|
145
116
|
- - "~>"
|
146
117
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
148
|
-
type: :
|
118
|
+
version: 3.13.0
|
119
|
+
type: :development
|
149
120
|
prerelease: false
|
150
121
|
version_requirements: !ruby/object:Gem::Requirement
|
151
122
|
requirements:
|
152
123
|
- - "~>"
|
153
124
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
125
|
+
version: 3.13.0
|
155
126
|
description: Taza is an opinionated page object framework.
|
156
127
|
email:
|
157
128
|
- watir-general@googlegroups.com
|
@@ -160,26 +131,9 @@ executables:
|
|
160
131
|
extensions: []
|
161
132
|
extra_rdoc_files: []
|
162
133
|
files:
|
163
|
-
- ".gitignore"
|
164
|
-
- ".rspec"
|
165
|
-
- ".ruby-gemset"
|
166
|
-
- ".travis.yml"
|
167
|
-
- Gemfile
|
168
|
-
- Gemfile.activesupport-3.2
|
169
|
-
- Gemfile.activesupport-4.0
|
170
|
-
- Gemfile.activesupport-4.1
|
171
|
-
- Gemfile.activesupport-4.2
|
172
|
-
- Gemfile.activesupport-5.0
|
173
134
|
- History.txt
|
174
|
-
- Manifest.txt
|
175
135
|
- README.md
|
176
|
-
- Rakefile
|
177
|
-
- TODO
|
178
136
|
- bin/taza
|
179
|
-
- lib/extensions/array.rb
|
180
|
-
- lib/extensions/hash.rb
|
181
|
-
- lib/extensions/object.rb
|
182
|
-
- lib/extensions/string.rb
|
183
137
|
- lib/formatters/failing_examples_formatter.rb
|
184
138
|
- lib/taza.rb
|
185
139
|
- lib/taza/browser.rb
|
@@ -233,24 +187,19 @@ files:
|
|
233
187
|
- spec/sandbox/pages/foo/baz.rb
|
234
188
|
- spec/sandbox/pages/foo/partials/partial_the_reckoning.rb
|
235
189
|
- spec/spec_helper.rb
|
236
|
-
- spec/taza/array_spec.rb
|
237
190
|
- spec/taza/browser_spec.rb
|
238
191
|
- spec/taza/entity_spec.rb
|
239
192
|
- spec/taza/fixture_spec.rb
|
240
193
|
- spec/taza/fixtures_spec.rb
|
241
|
-
- spec/taza/hash_spec.rb
|
242
194
|
- spec/taza/page_module_spec.rb
|
243
195
|
- spec/taza/page_spec.rb
|
244
196
|
- spec/taza/settings_spec.rb
|
245
197
|
- spec/taza/site_fixtures_spec.rb
|
246
198
|
- spec/taza/site_spec.rb
|
247
|
-
- spec/taza/string_spec.rb
|
248
199
|
- spec/taza/taza_tasks_spec.rb
|
249
|
-
- taza.gemspec
|
250
200
|
homepage: http://github.com/hammernight/taza
|
251
201
|
licenses: []
|
252
202
|
metadata: {}
|
253
|
-
post_install_message:
|
254
203
|
rdoc_options: []
|
255
204
|
require_paths:
|
256
205
|
- lib
|
@@ -258,16 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
207
|
requirements:
|
259
208
|
- - ">="
|
260
209
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
210
|
+
version: 3.0.0
|
262
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
212
|
requirements:
|
264
213
|
- - ">="
|
265
214
|
- !ruby/object:Gem::Version
|
266
215
|
version: '0'
|
267
216
|
requirements: []
|
268
|
-
|
269
|
-
rubygems_version: 2.4.5.1
|
270
|
-
signing_key:
|
217
|
+
rubygems_version: 3.6.2
|
271
218
|
specification_version: 4
|
272
219
|
summary: Taza is an opinionated page object framework.
|
273
220
|
test_files:
|
@@ -292,16 +239,13 @@ test_files:
|
|
292
239
|
- spec/sandbox/pages/foo/baz.rb
|
293
240
|
- spec/sandbox/pages/foo/partials/partial_the_reckoning.rb
|
294
241
|
- spec/spec_helper.rb
|
295
|
-
- spec/taza/array_spec.rb
|
296
242
|
- spec/taza/browser_spec.rb
|
297
243
|
- spec/taza/entity_spec.rb
|
298
244
|
- spec/taza/fixture_spec.rb
|
299
245
|
- spec/taza/fixtures_spec.rb
|
300
|
-
- spec/taza/hash_spec.rb
|
301
246
|
- spec/taza/page_module_spec.rb
|
302
247
|
- spec/taza/page_spec.rb
|
303
248
|
- spec/taza/settings_spec.rb
|
304
249
|
- spec/taza/site_fixtures_spec.rb
|
305
250
|
- spec/taza/site_spec.rb
|
306
|
-
- spec/taza/string_spec.rb
|
307
251
|
- spec/taza/taza_tasks_spec.rb
|
data/.gitignore
DELETED
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
taza
|
data/.travis.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
before_install: gem update --remote bundler
|
3
|
-
cache: bundler
|
4
|
-
rvm:
|
5
|
-
- 2.0
|
6
|
-
- 2.1
|
7
|
-
- 2.2
|
8
|
-
- 2.3
|
9
|
-
- ruby-head
|
10
|
-
- jruby-9
|
11
|
-
- rbx-2.2.7
|
12
|
-
- rbx-3
|
13
|
-
gemfile:
|
14
|
-
- Gemfile.activesupport-3.2
|
15
|
-
- Gemfile.activesupport-4.0
|
16
|
-
- Gemfile.activesupport-4.1
|
17
|
-
- Gemfile.activesupport-4.2
|
18
|
-
- Gemfile.activesupport-5.0
|
19
|
-
matrix:
|
20
|
-
allow_failures:
|
21
|
-
- rvm: ruby-head
|
22
|
-
- rvm: rbx-2.2.7
|
23
|
-
- rvm: rbx-3
|
24
|
-
exclude:
|
25
|
-
- rvm: 2.0
|
26
|
-
gemfile: Gemfile.activesupport-5.0
|
27
|
-
- rvm: 2.1
|
28
|
-
gemfile: Gemfile.activesupport-5.0
|
29
|
-
- rvm: 2.3
|
30
|
-
gemfile: Gemfile.activesupport-3.2
|
31
|
-
- rvm: ruby-head
|
32
|
-
gemfile: Gemfile.activesupport-3.2
|
33
|
-
- rvm: jruby-9
|
34
|
-
gemfile: Gemfile.activesupport-5.0
|
35
|
-
fast_finish: true
|
36
|
-
notifications:
|
37
|
-
email:
|
38
|
-
- pnascimento@gmail.com
|
39
|
-
- oriekenjr@gmail.com
|
data/Gemfile
DELETED
data/Gemfile.activesupport-3.2
DELETED
data/Gemfile.activesupport-4.0
DELETED
data/Gemfile.activesupport-4.1
DELETED
data/Gemfile.activesupport-4.2
DELETED
data/Gemfile.activesupport-5.0
DELETED
data/Manifest.txt
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
README.txt
|
4
|
-
Rakefile
|
5
|
-
bin/taza
|
6
|
-
generators/flow/flow_generator.rb
|
7
|
-
generators/flow/templates/flow.rb.erb
|
8
|
-
generators/page/page_generator.rb
|
9
|
-
generators/page/templates/functional_page_spec.rb.erb
|
10
|
-
generators/page/templates/page.rb.erb
|
11
|
-
generators/partial/partial_generator.rb
|
12
|
-
generators/partial/templates/partial.rb.erb
|
13
|
-
generators/site/site_generator.rb
|
14
|
-
generators/site/templates/site.rb.erb
|
15
|
-
generators/site/templates/site.yml.erb
|
16
|
-
lib/app_generators/taza/taza_generator.rb
|
17
|
-
lib/app_generators/taza/templates/config.yml.erb
|
18
|
-
lib/app_generators/taza/templates/rakefile.rb.erb
|
19
|
-
lib/app_generators/taza/templates/spec_helper.rb.erb
|
20
|
-
lib/extensions/object.rb
|
21
|
-
lib/extensions/string.rb
|
22
|
-
lib/extensions/hash.rb
|
23
|
-
lib/extensions/array.rb
|
24
|
-
lib/taza.rb
|
25
|
-
lib/taza/fixture.rb
|
26
|
-
lib/taza/entity.rb
|
27
|
-
lib/taza/browser.rb
|
28
|
-
lib/taza/browsers/ie_watir.rb
|
29
|
-
lib/taza/browsers/safari_watir.rb
|
30
|
-
lib/taza/flow.rb
|
31
|
-
lib/taza/page.rb
|
32
|
-
lib/taza/settings.rb
|
33
|
-
lib/taza/site.rb
|
34
|
-
lib/taza/tasks.rb
|
35
|
-
spec/browser_spec.rb
|
36
|
-
spec/entity_spec.rb
|
37
|
-
spec/flow_generator_spec.rb
|
38
|
-
spec/fixture_spec.rb
|
39
|
-
spec/fixtures_spec.rb
|
40
|
-
spec/object_spec.rb
|
41
|
-
spec/page_generator_spec.rb
|
42
|
-
spec/page_spec.rb
|
43
|
-
spec/partial_generator_spec.rb
|
44
|
-
spec/platform/osx/browser_spec.rb
|
45
|
-
spec/platform/windows/browser_spec.rb
|
46
|
-
spec/project_generator_spec.rb
|
47
|
-
spec/sandbox/config.yml
|
48
|
-
spec/sandbox/config/config.yml
|
49
|
-
spec/sandbox/config/site_name.yml
|
50
|
-
spec/sandbox/flows/batman.rb
|
51
|
-
spec/sandbox/flows/robin.rb
|
52
|
-
spec/sandbox/pages/foo/bar.rb
|
53
|
-
spec/sandbox/pages/foo/partials/partial_the_reckoning.rb
|
54
|
-
spec/settings_spec.rb
|
55
|
-
spec/site_generator_spec.rb
|
56
|
-
spec/site_spec.rb
|
57
|
-
spec/spec_helper.rb
|
58
|
-
spec/taza_bin_spec.rb
|
59
|
-
spec/taza_spec.rb
|
60
|
-
spec/taza_tasks_spec.rb
|
61
|
-
spec/unit_helper_spec.rb
|
data/Rakefile
DELETED
data/TODO
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Done:
|
2
|
-
+ Tagging test's (resolution: taglob)
|
3
|
-
+ sites and pages (resolution: Taza::Site)
|
4
|
-
+ generators for rakefile (resolution: uhh we made one?)
|
5
|
-
+ running tests by tag (resolution: ???)
|
6
|
-
+ gem server (resolution: taylor spiked this out)
|
7
|
-
+ build artifact of a video of a test running (resolution: we have two stories around this now)
|
8
|
-
+ test framework choices - what are we going to use and why we are using the one we are (resolution: rspec)
|
9
|
-
+ accessing the actual browser object (who creates it, who tears it down, etc)
|
10
|
-
+ block teardown of browser if yield is given for site
|
11
|
-
+ gem dependencies via hoe.(taglob,rake,rspec,mocha)
|
12
|
-
+ getting settings of a site: ex ECOM.settings delgates to taza::settings.site_file(ecom)
|
13
|
-
+ mocks
|
14
|
-
|
15
|
-
taza
|
16
|
-
- get rid of all the dumb ^M windows line endings
|
17
|
-
- url resolving
|
18
|
-
- ability to change yaml for a site
|
19
|
-
- ability to run integration tests for just a site
|
20
|
-
- clean all the config tests
|
21
|
-
- add test/spec support for generators
|
22
|
-
- add test/spec support for fixtures
|