grid 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -3,23 +3,27 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib'))
3
3
  require 'grid'
4
4
  require 'rspec/expectations';
5
5
 
6
- Given /^(\d+) users open "([^"]*)"$/ do |arg1, arg2|
7
- pending # express the regexp above with the code you wish you had
8
- end
6
+ Grid.control(:controller_uri=>"druby://ec2-50-16-63-81.compute-1.amazonaws.com:11235", :browser=>"chrome") do |browser, id|
9
7
 
10
- Given /^navigate to the portal$/ do
11
- pending # express the regexp above with the code you wish you had
12
- end
8
+ Given /^(\d+) users open "([^"]*)"$/ do |arg1, arg2|
9
+ pending # express the regexp above with the code you wish you had
10
+ end
13
11
 
14
- When /^they enter their credentials$/ do
15
- pending # express the regexp above with the code you wish you had
16
- end
12
+ Given /^navigate to the portal$/ do
13
+ pending # express the regexp above with the code you wish you had
14
+ end
17
15
 
18
- Then /^they should see their account settings$/ do
19
- pending # express the regexp above with the code you wish you had
20
- end
16
+ When /^they enter their credentials$/ do
17
+ pending # express the regexp above with the code you wish you had
18
+ end
19
+
20
+ Then /^they should see their account settings$/ do
21
+ pending # express the regexp above with the code you wish you had
22
+ end
23
+
24
+ Then /^the response time should be less than (\d+) seconds$/ do |arg1|
25
+ pending # express the regexp above with the code you wish you had
26
+ end
21
27
 
22
- Then /^the response time should be less than (\d+) seconds$/ do |arg1|
23
- pending # express the regexp above with the code you wish you had
24
28
  end
25
29
 
data/grid.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{grid}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Koopmans"]
data/lib/grid.rb CHANGED
@@ -20,7 +20,7 @@ class Grid
20
20
  log.level = params[:loglevel] || Logger::DEBUG
21
21
  grid = Watir::Grid.new(params)
22
22
  grid.start(:take_all => true)
23
- if grid.first[:browser_type] =~ /webdriver/
23
+ if grid.browsers.first[:browser_type] =~ /webdriver/
24
24
  webdriver_browser_type = ask('What browser type?') { |q| q.default = "firefox" } unless params[:browser]
25
25
  end
26
26
  log.debug("Grid size : #{grid.size}")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Koopmans