lazyman 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -36,7 +36,7 @@ By default, lazyman runs examples using chrome browser, so make sure you install
36
36
  Using following command to make everything running.
37
37
 
38
38
  cd your_project_name
39
- lazyman go # or rspec
39
+ lazyman go
40
40
 
41
41
  Lazyman go command supports all the rspec options and it is the recommend way.
42
42
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
data/bin/lazyman CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  lazyman_path = File.expand_path('../../lib', __FILE__)
4
- puts lazyman_path
4
+ #puts lazyman_path
5
5
  $:.unshift(lazyman_path)
6
6
 
7
- require 'Lazyman/cli'
7
+ require 'lazyman/cli'
data/lazyman.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lazyman"
8
- s.version = "0.1.9"
8
+ s.version = "0.1.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["easonhan"]
12
- s.date = "2013-05-06"
12
+ s.date = "2013-05-22"
13
13
  s.description = "A test framework using watir-webdriver rspec and page-object"
14
14
  s.email = "nbkhic@qq.com"
15
15
  s.executables = ["lazyman"]
@@ -1,4 +1,4 @@
1
- require 'Lazyman/errors'
1
+ require 'lazyman/errors'
2
2
  module Lazyman
3
3
  class Navigator
4
4
 
@@ -6,6 +6,7 @@ module Lazyman
6
6
  @config = config.clone
7
7
  defined_browser?
8
8
  @browser = start_browser
9
+ raise "can not start browser, maybe you need to download the driver for #{@config.browser}" if @browser.nil?
9
10
  define_goto_methods
10
11
  end
11
12
 
@@ -12,13 +12,13 @@ describe Lazyman::Navigator do
12
12
  end
13
13
 
14
14
  it 'should start browser successfully' do
15
- Watir::Browser.stub(:new)
15
+ Watir::Browser.stub(:new).and_return('browser')
16
16
  Watir::Browser.should_receive(:new)
17
17
  Lazyman::Navigator.new(@config)
18
18
  end
19
19
 
20
20
  it "should be lazyman page" do
21
- Watir::Browser.stub(:new)
21
+ Watir::Browser.stub(:new).and_return('browser')
22
22
  Watir::Browser.should_receive(:new)
23
23
  navi = Lazyman::Navigator.new(@config)
24
24
  navi.lazyman_page?(:CustomTestPage).should be_true
@@ -26,7 +26,7 @@ describe Lazyman::Navigator do
26
26
  end
27
27
 
28
28
  it 'should define goto methods for navigator' do
29
- Watir::Browser.stub(:new)
29
+ Watir::Browser.stub(:new).and_return('browser')
30
30
  Watir::Browser.should_receive(:new)
31
31
  navi = Lazyman::Navigator.new(@config)
32
32
  navi.should respond_to(:goto_test_page)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazyman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-06 00:00:00.000000000 Z
12
+ date: 2013-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &23525952 !ruby/object:Gem::Requirement
16
+ requirement: &23695680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.13.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *23525952
24
+ version_requirements: *23695680
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: page-object
27
- requirement: &23525664 !ruby/object:Gem::Requirement
27
+ requirement: &23695392 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.6.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *23525664
35
+ version_requirements: *23695392
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &23525376 !ruby/object:Gem::Requirement
38
+ requirement: &23711484 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.14.6
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *23525376
46
+ version_requirements: *23711484
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: active_support
49
- requirement: &23525088 !ruby/object:Gem::Requirement
49
+ requirement: &23711196 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *23525088
57
+ version_requirements: *23711196
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rdoc
60
- requirement: &23524800 !ruby/object:Gem::Requirement
60
+ requirement: &23710908 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '3.12'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *23524800
68
+ version_requirements: *23710908
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &23524512 !ruby/object:Gem::Requirement
71
+ requirement: &23710620 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *23524512
79
+ version_requirements: *23710620
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: jeweler
82
- requirement: &23524224 !ruby/object:Gem::Requirement
82
+ requirement: &23710332 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.8.4
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *23524224
90
+ version_requirements: *23710332
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec
93
- requirement: &23523936 !ruby/object:Gem::Requirement
93
+ requirement: &23710032 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 2.13.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *23523936
101
+ version_requirements: *23710032
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: page-object
104
- requirement: &23523648 !ruby/object:Gem::Requirement
104
+ requirement: &23709744 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.8.6.1
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *23523648
112
+ version_requirements: *23709744
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: thor
115
- requirement: &23523360 !ruby/object:Gem::Requirement
115
+ requirement: &23709456 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.14.6
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *23523360
123
+ version_requirements: *23709456
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: active_support
126
- requirement: &23523072 !ruby/object:Gem::Requirement
126
+ requirement: &23709168 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: 3.0.0
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *23523072
134
+ version_requirements: *23709168
135
135
  description: A test framework using watir-webdriver rspec and page-object
136
136
  email: nbkhic@qq.com
137
137
  executables:
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  segments:
220
220
  - 0
221
- hash: -461763587
221
+ hash: -173466541
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  none: false
224
224
  requirements: