rwebspec 5.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 243d65b66503ee097eabcb5bdd0406d02465ffa9
4
+ data.tar.gz: da2288b12f703955fd454021db39ae63bd116342
5
+ SHA512:
6
+ metadata.gz: 47a592a6142b92fa68fe450e2a3c747ebb46528cef8f46dcaa18605c572bd53c07b628eab3c303f6fcacfe38ddc5db8002a81e1ee609e6c4fa6db86d72d9913d
7
+ data.tar.gz: c26663c841e53f7a54f3deaa7ebf7d2062dae86207819e37f6a19b0827033daaaad68813ffeca8bda447185d3bc6e89e40402a7a73579e7db47b212bd80ae0e9
data/CHANGELOG CHANGED
@@ -1,6 +1,9 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 5.0.1
5
+ [New] browser.execute_script
6
+
4
7
  5.0
5
8
  [Change] Support Watir 5.0, watir-classic/ie no longer available
6
9
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rspec/core/rake_task'
3
- # require 'rake/rdoctask'
3
+ require 'rdoc/task'
4
4
  require 'rubygems/package_task'
5
5
 
6
6
  require 'rdoc' # require rdoc 2
@@ -40,15 +40,16 @@ end
40
40
  # rdoc.rdoc_files.include('lib/rwebspec/*.rb')
41
41
  # }
42
42
 
43
- =begin
43
+
44
44
  # using DarkFish - http://deveiate.org/projects/Darkfish-Rdoc/
45
45
  Rake::RDocTask.new do |rdoc|
46
46
  rdoc.rdoc_dir = 'doc'
47
47
  rdoc.title = 'RWebSpec'
48
48
  rdoc.rdoc_files.include('lib/rwebspec.rb')
49
49
  rdoc.rdoc_files.include('lib/rwebspec-common/*.rb')
50
+ rdoc.rdoc_files.include('lib/rwebspec-common/matchers/*.rb')
50
51
  rdoc.rdoc_files.include('lib/rwebspec-watir/*.rb')
51
- rdoc.rdoc_files.include('lib/rwebspec-selenium/*.rb')
52
+ rdoc.rdoc_files.include('lib/rwebspec-webdriver/*.rb')
52
53
  rdoc.rdoc_files.include('lib/extensions/*.rb')
53
54
  rdoc.rdoc_files.delete("lib/rwebspec/web_testcase.rb")
54
55
  rdoc.rdoc_files.delete("lib/rwebspec/checkJSDialog.rb")
@@ -73,12 +74,10 @@ Rake::RDocTask.new("chm") do |rdoc|
73
74
  ]
74
75
  end
75
76
 
76
- =end
77
-
78
77
  spec = Gem::Specification.new do |s|
79
78
  s.platform= Gem::Platform::RUBY
80
79
  s.name = "rwebspec"
81
- s.version = "5.0"
80
+ s.version = "5.0.1"
82
81
  s.summary = "Web application functional specification in Ruby"
83
82
  s.description = "Executable functional specification for web applications in RSpec syntax with Watir or Selenium"
84
83
 
@@ -274,7 +274,7 @@ module RWebSpec
274
274
  alias img image
275
275
 
276
276
 
277
- [:back, :forward, :refresh].each do |method|
277
+ [:back, :forward, :refresh, :execute_script].each do |method|
278
278
  define_method(method) do
279
279
  perform_operation { @web_browser.send(method) if @web_browser }
280
280
  end
@@ -447,14 +447,8 @@ module RWebSpec
447
447
 
448
448
  end
449
449
 
450
-
451
- # <link rel="stylesheet" type="text/css" href="/stylesheets/default.css" />
452
- # '<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>'
453
- # <script type="text/javascript" src="/javascripts/prototype.js"></script>
454
- # <script type="text/javascript" src="/javascripts/scriptaculous.js?load=effects,builder"></script>
455
- # <script type="text/javascript" src="/javascripts/extensions/gallery/lightbox.js"></script>
456
- # <link href="/stylesheets/extensions/gallery/lightbox.css" rel="stylesheet" type="text/css" />
457
- # <img src="images/mission_48.png" />
450
+ # Return page HTML with absolute references of images, stylesheets and javascripts
451
+ #
458
452
  def absolutize_page(content, base_url, current_url_parent)
459
453
  modified_content = ""
460
454
  content.each_line do |line|
@@ -474,7 +468,7 @@ module RWebSpec
474
468
  return modified_content
475
469
  end
476
470
 
477
- # absolutize_page referencs using hpricot
471
+ # absolutize_page using hpricot
478
472
  #
479
473
  def absolutize_page_hpricot(content, base_url, parent_url)
480
474
  return absolutize_page(content, base_url, parent_url) if RUBY_PLATFORM == 'java'
@@ -233,7 +233,7 @@ module RWebSpec
233
233
  @web_browser = $browser || WebBrowser.attach_browser(how, what)
234
234
  end
235
235
 
236
- [:back, :forward, :refresh].each do |method|
236
+ [:back, :forward, :refresh, :execute_script].each do |method|
237
237
  define_method(method) do
238
238
  perform_operation { @web_browser.send(method) if @web_browser }
239
239
  end
@@ -442,13 +442,8 @@ module RWebSpec
442
442
  end
443
443
 
444
444
 
445
- # <link rel="stylesheet" type="text/css" href="/stylesheets/default.css" />
446
- # '<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>'
447
- # <script type="text/javascript" src="/javascripts/prototype.js"></script>
448
- # <script type="text/javascript" src="/javascripts/scriptaculous.js?load=effects,builder"></script>
449
- # <script type="text/javascript" src="/javascripts/extensions/gallery/lightbox.js"></script>
450
- # <link href="/stylesheets/extensions/gallery/lightbox.css" rel="stylesheet" type="text/css" />
451
- # <img src="images/mission_48.png" />
445
+ # Return page HTML with absolute references of images, stylesheets and javascripts
446
+ #
452
447
  def absolutize_page(content, base_url, current_url_parent)
453
448
  modified_content = ""
454
449
  content.each_line do |line|
data/lib/rwebspec.rb CHANGED
@@ -16,7 +16,7 @@ end
16
16
  require 'rspec'
17
17
 
18
18
  unless defined? RWEBSPEC_VERSION
19
- RWEBSPEC_VERSION = RWEBUNIT_VERSION = "5.0"
19
+ RWEBSPEC_VERSION = RWEBUNIT_VERSION = "5.0.1"
20
20
  end
21
21
 
22
22
  $testwise_polling_interval = 1 # seconds
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwebspec
3
3
  version: !ruby/object:Gem::Version
4
- version: '5.0'
5
- prerelease:
4
+ version: 5.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Zhimin Zhan
9
8
  autorequire: rwebspec
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2013-11-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.13'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.13'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec-core
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 2.13.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 2.13.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec-mocks
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 2.13.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 2.13.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec-expectations
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '2.13'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '2.13'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: commonwatir
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: 4.0.0
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: 4.0.0
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: selenium-webdriver
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: Executable functional specification for web applications in RSpec syntax
@@ -145,27 +132,26 @@ files:
145
132
  homepage: http://github.com/zhimin/rwebspec/tree/master
146
133
  licenses:
147
134
  - MIT
135
+ metadata: {}
148
136
  post_install_message:
149
137
  rdoc_options: []
150
138
  require_paths:
151
139
  - lib
152
140
  required_ruby_version: !ruby/object:Gem::Requirement
153
- none: false
154
141
  requirements:
155
- - - ! '>='
142
+ - - '>='
156
143
  - !ruby/object:Gem::Version
157
144
  version: '0'
158
145
  required_rubygems_version: !ruby/object:Gem::Requirement
159
- none: false
160
146
  requirements:
161
- - - ! '>='
147
+ - - '>='
162
148
  - !ruby/object:Gem::Version
163
149
  version: '0'
164
150
  requirements:
165
151
  - none
166
152
  rubyforge_project: rwebspec
167
- rubygems_version: 1.8.25
153
+ rubygems_version: 2.0.3
168
154
  signing_key:
169
- specification_version: 3
155
+ specification_version: 4
170
156
  summary: Web application functional specification in Ruby
171
157
  test_files: []