-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add enough code to get a rack app up and starting to be tested
- Loading branch information
R. Tyler Croy
committed
Aug 3, 2012
1 parent
5d0992c
commit 6e3ad0f
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ group :development do | |
gem 'cucumber' | ||
gem 'rspec' | ||
gem 'ruby-debug19' | ||
gem 'rack-test' | ||
gem 'capybara' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: SauceLabs.tv home page | ||
In order to understand WTF saucelabs.tv is | ||
As a regular user | ||
The home page should inform me about wtf this thing is | ||
|
||
Scenario: Un-authenticated access to home page | ||
When I visit the home page | ||
Then I should be welcomed | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
When /^I visit the home page$/ do | ||
visit '/' | ||
end | ||
|
||
Then /^I should be welcomed$/ do | ||
pending # express the regexp above with the code you wish you had | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'capybara' | ||
require 'capybara/cucumber' | ||
require 'rack/test' | ||
|
||
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') | ||
|
||
require 'saucetv' | ||
|
||
Capybara.app = SauceTV::Application |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'sinatra' | ||
|
||
|
||
module SauceTV | ||
class Application < Sinatra::Base | ||
end | ||
end |