rwebspec 4.2.0 → 4.2.1
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/CHANGELOG +2 -0
- data/Rakefile +1 -1
- data/lib/rwebspec-common/assert.rb +5 -1
- data/lib/rwebspec-webdriver/driver.rb +0 -1
- data/lib/rwebspec.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -78,7 +78,7 @@ end
|
|
78
78
|
spec = Gem::Specification.new do |s|
|
79
79
|
s.platform= Gem::Platform::RUBY
|
80
80
|
s.name = "rwebspec"
|
81
|
-
s.version = "4.2.
|
81
|
+
s.version = "4.2.1"
|
82
82
|
s.summary = "Web application functional specification in Ruby"
|
83
83
|
s.description = "Executable functional specification for web applications in RSpec syntax with Watir or Selenium"
|
84
84
|
|
@@ -355,7 +355,11 @@ module RWebSpec
|
|
355
355
|
alias assert_element_exists assert_exists
|
356
356
|
|
357
357
|
def assert_not_exists(tag, element_id)
|
358
|
-
|
358
|
+
if RWebSpec.framework == "Watir"
|
359
|
+
perform_assertion { assert_not(eval("#{tag}(:id, '#{element_id.to_s}').exists?"), "Unexpected element'#{tag}' + with id: '#{element_id}' found")}
|
360
|
+
else
|
361
|
+
perform_assertion { assert_not( @web_browser.driver.find_element(:tag_name => tag, :id => element_id))}
|
362
|
+
end
|
359
363
|
end
|
360
364
|
|
361
365
|
alias assert_not_exists? assert_not_exists
|
data/lib/rwebspec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rwebspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire: rwebspec
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
164
164
|
- none
|
165
165
|
rubyforge_project: rwebspec
|
166
|
-
rubygems_version: 1.8.
|
166
|
+
rubygems_version: 1.8.25
|
167
167
|
signing_key:
|
168
168
|
specification_version: 3
|
169
169
|
summary: Web application functional specification in Ruby
|