Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: johnsonch/twitflickup
base: master
...
head fork: johnsonch/twitflickup
compare: switching_to_sauce
Checking mergeability… Don't worry, you can still create the pull request.
  • 8 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
View
1  Gemfile
@@ -39,6 +39,7 @@ group :test do
gem "cucumber-rails"
gem "capybara"
gem "rspec-rails", ">= 2.0.1"
+ gem "sauce"
end
gem "haml", ">= 3.0.0"
View
17 Gemfile.lock
@@ -42,6 +42,7 @@ GEM
xpath (~> 0.1.4)
childprocess (0.2.2)
ffi (~> 1.0.6)
+ cmdparse (2.0.3)
coffee-rails (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
@@ -81,6 +82,7 @@ GEM
haml (~> 3.0)
railties (~> 3.0)
hashie (1.1.0)
+ highline (1.6.2)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.16)
@@ -97,6 +99,9 @@ GEM
multi_xml (0.4.1)
multipart-post (1.1.3)
mysql2 (0.3.7)
+ net-ssh (2.2.1)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
nokogiri (1.5.0)
polyglot (0.3.2)
rack (1.3.5)
@@ -126,6 +131,8 @@ GEM
rake (0.9.2.2)
rdoc (3.11)
json (~> 1.4)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
rspec (2.7.0)
rspec-core (~> 2.7.0)
rspec-expectations (~> 2.7.0)
@@ -147,6 +154,15 @@ GEM
sass (>= 3.1.4)
sprockets (~> 2.0.0)
tilt (~> 1.3.2)
+ sauce (1.0.2)
+ childprocess (>= 0.1.6)
+ cmdparse (>= 2.0.2)
+ highline (>= 1.5.0)
+ json (>= 1.2.0)
+ net-ssh
+ net-ssh-gateway
+ rest-client
+ selenium-webdriver (>= 0.1.4)
selenium-webdriver (2.9.1)
childprocess (>= 0.2.1)
ffi (= 1.0.9)
@@ -195,6 +211,7 @@ DEPENDENCIES
rails (= 3.1.1)
rspec-rails (>= 2.0.1)
sass-rails (~> 3.1.4)
+ sauce
turn (< 0.8.3)
twitter
uglifier (>= 1.0.3)
View
9 features/homepage.feature
@@ -0,0 +1,9 @@
+Feature: Twitflickup searches twitter and flicker
+
+ Scenario: Search twitter for fish and display tweet
+ Given I am on the twitflickup homepage
+ Then I should see a tweet with the word "fish" in it
+
+ Scenario: Search flickr for an image
+ Given I am on the twitflickup homepage
+ Then I should seen an image from Flickr
View
11 features/step_definitions/homepage_steps.rb
@@ -0,0 +1,11 @@
+Given /^I am on the twitflickup homepage$/ do
+ page.visit("/")
+end
+
+Then /^I should see a tweet with the word "([^"]*)" in it$/ do |search|
+ page.should have_content(search)
+end
+
+Then /^I should seen an image from Flickr$/ do
+ page.has_selector?('#flickr-image img')
+end
View
11 features/support/env.rb
@@ -11,6 +11,17 @@
# prefer to use XPath just remove this line and adjust any selectors in your
# steps to use the XPath syntax.
Capybara.default_selector = :css
+require 'sauce'
+require 'sauce/capybara'
+
+Sauce.config do |config|
+ config.browser = "firefox"
+ config.os = "Windows 2008"
+ config.browser_version = "7"
+ config.name = "Test Job Name"
+end
+
+Capybara.default_driver = :sauce
# By default, any exception happening in your Rails application will bubble up
# to Cucumber so that your scenario will fail. This is a different from how

No commit comments for this range

Something went wrong with that request. Please try again.