rwebspec 1.6.4 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  CHANGELOG
2
2
  =========
3
+ 1.6.5
4
+ [Fixes] load Firewatir first, in case new version of ActiveSupport is loaded first
5
+
3
6
  1.6.4
4
7
  added WebBrwoser.modal_dialog
5
8
  added many watir ie methods such as :elements, :divs....
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.6.4"
73
+ s.version = "1.6.5"
74
74
  s.summary = "Executable functional specification for web applications in RSpec syntax and Watir"
75
75
  # s.description = ""
76
76
 
@@ -297,7 +297,6 @@ module RWebSpec
297
297
  operation_delay
298
298
  yield
299
299
  rescue RuntimeError => re
300
- puts "[DEBUG] operation error: #{re}"
301
300
  raise re
302
301
  # ensure
303
302
  # puts "[DEBUG] ensure #{perform_ok}" unless perform_ok
@@ -81,7 +81,6 @@ module RWebSpec
81
81
  end
82
82
  else
83
83
  raise "Not supported, no FireWatirdetected" unless $firewatir_loaded
84
- puts "Ruby Linux or Mac platform: firefox"
85
84
  initialize_firefox_browser(existing_browser, base_url, options)
86
85
  end
87
86
  end
data/lib/rwebspec.rb CHANGED
@@ -1,7 +1,17 @@
1
1
  #***********************************************************
2
- #* Copyright (c) 2006 - 2009, Zhimin Zhan.
2
+ #* Copyright (c) 2006 - 2010, Zhimin Zhan.
3
3
  #* Distributed open-source, see full license in MIT-LICENSE
4
4
  #***********************************************************
5
+ require "rubygems";
6
+
7
+ # Try load firewatir first, which depends on ActiveSupport 2.3.9
8
+ begin
9
+ require "firewatir";
10
+ $firewatir_loaded = true
11
+ rescue LoadError => e
12
+ puts e
13
+ $firewatir_loaded = false
14
+ end
5
15
 
6
16
  # Load active_support, so that we can use 1.days.ago
7
17
  begin
@@ -14,7 +24,7 @@ require 'active_support/core_ext'
14
24
  require 'spec'
15
25
 
16
26
  unless defined? RWEBSPEC_VERSION
17
- RWEBSPEC_VERSION = RWEBUNIT_VERSION = "1.6.4"
27
+ RWEBSPEC_VERSION = RWEBUNIT_VERSION = "1.6.5"
18
28
  end
19
29
 
20
30
  # Extra full path to load libraries
data/lib/rwebunit.rb ADDED
@@ -0,0 +1,3 @@
1
+ # legacy code to support old 'require rwebunit'
2
+ require File.dirname(__FILE__) + "/rwebspec"
3
+ RWebUnit = RWebSpec
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwebspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 4
10
- version: 1.6.4
9
+ - 5
10
+ version: 1.6.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zhimin Zhan
14
- autorequire:
14
+ autorequire: rwebspec
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-18 00:00:00 +10:00
18
+ date: 2011-01-07 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -67,21 +67,22 @@ files:
67
67
  - lib/rwebspec/assert.rb
68
68
  - lib/rwebspec/clickJSDialog.rb
69
69
  - lib/rwebspec/context.rb
70
+ - lib/rwebspec/database_checker.rb
70
71
  - lib/rwebspec/driver.rb
71
- - lib/rwebspec/testwise_plugin.rb
72
+ - lib/rwebspec/load_test_helper.rb
72
73
  - lib/rwebspec/matchers/contains_text.rb
73
74
  - lib/rwebspec/popup.rb
74
75
  - lib/rwebspec/rspec_helper.rb
75
76
  - lib/rwebspec/test_script.rb
76
77
  - lib/rwebspec/test_utils.rb
78
+ - lib/rwebspec/testwise_plugin.rb
77
79
  - lib/rwebspec/using_pages.rb
78
80
  - lib/rwebspec/web_browser.rb
79
81
  - lib/rwebspec/web_page.rb
80
82
  - lib/rwebspec/web_testcase.rb
81
83
  - lib/rwebspec.rb
84
+ - lib/rwebunit.rb
82
85
  - lib/watir_extensions.rb
83
- - lib/rwebspec/load_test_helper.rb
84
- - lib/rwebspec/database_checker.rb
85
86
  - lib/window_script_extensions.rb
86
87
  has_rdoc: true
87
88
  homepage: http://github.com/zhimin/rwebspec/tree/master
@@ -115,7 +116,7 @@ requirements:
115
116
  rubyforge_project: rwebspec
116
117
  rubygems_version: 1.3.7
117
118
  signing_key:
118
- specification_version: 2
119
+ specification_version: 3
119
120
  summary: Executable functional specification for web applications in RSpec syntax and Watir
120
121
  test_files: []
121
122