rwebspec 4.1.4 → 4.1.7

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,6 +1,10 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 4.1.6
5
+ [Enhancement] Remove warning message MAX_MESSAGE_LENGTH redefined
6
+ [Fixes] loading framework not aware of watir-webdriver
7
+
4
8
  4.1.4
5
9
  [Enhancement] Add warning to calling close_all_browsers
6
10
 
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.1.4"
81
+ s.version = "4.1.7"
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
 
@@ -1,6 +1,6 @@
1
1
  require 'socket'
2
2
 
3
- MAX_MESSAGE_LENGTH = 8192 # < 10K
3
+ MAX_MESSAGE_LENGTH = 8192 unless defined?(MAX_MESSAGE_LENGTH)# < 10K
4
4
  $testwise_support = true
5
5
 
6
6
  module RWebSpec
@@ -30,7 +30,7 @@ module RWebSpec
30
30
  # New Options:
31
31
  # :browser => :ie | :firefox | :chrome
32
32
  def open_browser(options = {})
33
- # puts "[DEBUG] [SeleniumDriver] Callling open_browser #{base_url}"
33
+ puts "[DEBUG] [SeleniumDriver] Callling open_browser #{options.inspect}"
34
34
 
35
35
  begin
36
36
  support_unicode
@@ -49,6 +49,7 @@ module RWebSpec
49
49
  base_url = options[:base_url] rescue nil
50
50
  base_url ||= $TESTWISE_PROJECT_BASE_URL
51
51
  base_url ||= $BASE_URL
52
+ base_url ||= options[:url]
52
53
 
53
54
  raise "base_url must be set" if base_url.nil?
54
55
 
@@ -65,10 +66,11 @@ module RWebSpec
65
66
  options[:browser] = $TESTWISE_BROWSER.downcase
66
67
  end
67
68
 
68
- if options[:firefox] && options[:browser].nil? then
69
- options[:browser] = "firefox" # legacy
69
+ if (RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/) &&
70
+ (options[:browser].nil? || options[:browser].to_s == "ie")
71
+ options[:browser] = "firefox"
70
72
  end
71
-
73
+
72
74
  if base_url =~ /^file:/
73
75
  uri_base = base_url
74
76
  else
@@ -76,6 +78,7 @@ module RWebSpec
76
78
  uri_base = "#{uri.scheme}://#{uri.host}:#{uri.port}"
77
79
  end
78
80
 
81
+ puts "[DEBUG] Starting a new browser #{uri_base} with options: #{options.inspect}"
79
82
  if options[:start_new]
80
83
  # puts "[DEBUG] [SeleniumBrowser] creating a new browser"
81
84
  @web_browser = WebBrowser.new(uri_base, nil, options)
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 = "4.1.4"
19
+ RWEBSPEC_VERSION = RWEBUNIT_VERSION = "4.1.7"
20
20
  end
21
21
 
22
22
  $testwise_polling_interval = 1 # seconds
@@ -56,7 +56,7 @@ module RWebSpec
56
56
  end
57
57
 
58
58
  def load_watir
59
- puts "Loading Watir"
59
+ # puts "Loading Watir"
60
60
  load(File.dirname(__FILE__) + "/rwebspec-watir/web_browser.rb")
61
61
  load(File.dirname(__FILE__) + "/rwebspec-watir/driver.rb")
62
62
  require File.dirname(__FILE__) + "/extensions/watir_extensions"
@@ -64,7 +64,7 @@ module RWebSpec
64
64
  end
65
65
 
66
66
  def load_selenium
67
- puts "Loading Selenium"
67
+ # puts "Loading Selenium"
68
68
  load(File.dirname(__FILE__) + "/rwebspec-webdriver/web_browser.rb")
69
69
  load(File.dirname(__FILE__) + "/rwebspec-webdriver/driver.rb")
70
70
  require File.dirname(__FILE__) + "/extensions/webdriver_extensions"
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.1.4
4
+ version: 4.1.7
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-02-06 00:00:00.000000000 Z
12
+ date: 2013-02-18 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.24
166
+ rubygems_version: 1.8.23
167
167
  signing_key:
168
168
  specification_version: 3
169
169
  summary: Web application functional specification in Ruby