rwebspec 1.8.1 → 1.8.2

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  CHANGELOG
2
2
  =========
3
+ 1.8.2
4
+ Add javascript_dialog in driver to support Watir 1.9
5
+
3
6
  1.8.1
4
7
  [Upgrade] new take screenshot library
5
8
  [Fix] only take screenshot on failed assertions if $task_screenshot is set
data/Rakefile CHANGED
@@ -70,7 +70,7 @@ end
70
70
  spec = Gem::Specification.new do |s|
71
71
  s.platform= Gem::Platform::RUBY
72
72
  s.name = "rwebspec"
73
- s.version = "1.8.1"
73
+ s.version = "1.8.2"
74
74
  s.summary = "Executable functional specification for web applications in RSpec syntax and Watir"
75
75
  # s.description = ""
76
76
 
@@ -839,6 +839,11 @@ module RWebSpec
839
839
  end
840
840
  end
841
841
 
842
+ # Watir 1.9 way of handling javascript dialog
843
+ def javascript_dialog
844
+ @web_browser.javascript_dialog
845
+ end
846
+
842
847
  def select_file_for_upload(file_field_name, file_path)
843
848
  if is_windows?
844
849
  normalized_file_path = file_path.gsub("/", "\\")
@@ -580,7 +580,12 @@ module RWebSpec
580
580
  normalized_file_path = RUBY_PLATFORM.downcase.include?("mingw") ? file_path.gsub("/", "\\") : file_path
581
581
  file_field(:name, file_field).set(normalized_file_path)
582
582
  end
583
-
583
+
584
+ # Watir 1.9
585
+ def javascript_dialog
586
+ @browser.javascript_dialog
587
+ end
588
+
584
589
  def start_window(url = nil)
585
590
  @browser.start_window(url);
586
591
  end
data/lib/rwebspec.rb CHANGED
@@ -24,7 +24,7 @@ require 'active_support/core_ext'
24
24
  require 'spec'
25
25
 
26
26
  unless defined? RWEBSPEC_VERSION
27
- RWEBSPEC_VERSION = RWEBUNIT_VERSION = "1.8.1"
27
+ RWEBSPEC_VERSION = RWEBUNIT_VERSION = "1.8.2"
28
28
  end
29
29
 
30
30
  if RUBY_PLATFORM =~ /mswin/ or RUBY_PLATFORM =~ /mingw/
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwebspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 51
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
- - 1
10
- version: 1.8.1
9
+ - 2
10
+ version: 1.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zhimin Zhan
@@ -15,7 +15,7 @@ autorequire: rwebspec
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-28 00:00:00 +10:00
18
+ date: 2011-07-06 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency