This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature: | |
Feature: Cucumber Question | |
Scenario Outline: Google Search for <search term> | |
Given I am on Google Search Home Page | |
When I search for "<Search>" | |
Then I should find "<Search>" | |
Examples: | |
| Search | | |
| Facebook | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array = ["id", "name"] | |
#use the id | |
browser.text_field(:id, id) | |
#use the name | |
browser.text_field(:id, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
require 'site1' | |
require 'site2' | |
describe "Site1Page" do | |
it "it should go from site 1 to site 2" do | |
Site1.new do |s| | |
s.site1_page.element.should exist | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
isolation: | |
:url: http://defaultsite.com | |
:host: default | |
:database: default | |
:user: username | |
:password: password | |
dev: | |
:url: http://devsite.com | |
:host: devhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'watir' | |
#Start the Browser | |
b = Watir::Browser.new | |
b.bring_to_front | |
b.maximize | |
#Go to the Watir Examples Form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Confirmations Controller located in controllers/riders | |
class Riders::ConfirmationsController < Devise::ConfirmationsController | |
skip_before_filter :require_no_authentication | |
skip_before_filter :authenticate_user! | |
# PATCH /riders/confirmation | |
def update | |
with_unconfirmed_confirmable do | |
if @confirmable.has_no_password? | |
@confirmable.attempt_set_password(params[:rider]) | |
if @confirmable.valid? |