examples/cucumber/step_definitions/example_steps.rb in grid-0.3.3 vs examples/cucumber/step_definitions/example_steps.rb in grid-0.3.4
- old
+ new
@@ -1,25 +1,29 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'lib'))
require 'grid'
require 'rspec/expectations';
-Given /^(\d+) users open "([^"]*)"$/ do |arg1, arg2|
- pending # express the regexp above with the code you wish you had
-end
+Grid.control(:controller_uri=>"druby://ec2-50-16-63-81.compute-1.amazonaws.com:11235", :browser=>"chrome") do |browser, id|
-Given /^navigate to the portal$/ do
- pending # express the regexp above with the code you wish you had
-end
+ Given /^(\d+) users open "([^"]*)"$/ do |arg1, arg2|
+ pending # express the regexp above with the code you wish you had
+ end
-When /^they enter their credentials$/ do
- pending # express the regexp above with the code you wish you had
-end
+ Given /^navigate to the portal$/ do
+ pending # express the regexp above with the code you wish you had
+ end
-Then /^they should see their account settings$/ do
- pending # express the regexp above with the code you wish you had
-end
+ When /^they enter their credentials$/ do
+ pending # express the regexp above with the code you wish you had
+ end
-Then /^the response time should be less than (\d+) seconds$/ do |arg1|
- pending # express the regexp above with the code you wish you had
+ Then /^they should see their account settings$/ do
+ pending # express the regexp above with the code you wish you had
+ end
+
+ Then /^the response time should be less than (\d+) seconds$/ do |arg1|
+ pending # express the regexp above with the code you wish you had
+ end
+
end