Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

First failing spec! (don't commit this at home)

  • Loading branch information...
commit 6ef20b9f57d6461386ecaa6013c0ea0f9c5d260f 1 parent 84e2a85
@shageman authored
View
1  Gemfile
@@ -4,4 +4,5 @@ gem 'rails'
group :test, :development do
gem 'rspec-rails'
+ gem 'capybara'
end
View
23 Gemfile.lock
@@ -28,20 +28,34 @@ GEM
activesupport (3.2.8)
i18n (~> 0.6)
multi_json (~> 1.0)
+ addressable (2.3.2)
arel (3.0.2)
builder (3.0.3)
+ capybara (1.1.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.3.5)
+ ffi (~> 1.0, >= 1.0.6)
diff-lcs (1.1.3)
erubis (2.7.0)
+ ffi (1.1.5)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
json (1.7.5)
+ libwebsocket (0.1.5)
+ addressable
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
multi_json (1.3.6)
+ nokogiri (1.5.5)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
@@ -81,6 +95,12 @@ GEM
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.11.0)
+ rubyzip (0.9.9)
+ selenium-webdriver (2.25.0)
+ childprocess (>= 0.2.5)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
+ rubyzip
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
@@ -91,10 +111,13 @@ GEM
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.33)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
+ capybara
rails
rspec-rails
View
6 README.rdoc
@@ -1,3 +1,7 @@
== The next big thing
-An application that let's you sign up for the next big thing.
+An application that let's you sign up for the next big thing.
+
+== Running the test suite
+
+`rake`
View
13 Rakefile
@@ -1,7 +1,12 @@
#!/usr/bin/env rake
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
require File.expand_path('../config/application', __FILE__)
-
TheNextBigThing::Application.load_tasks
+
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:rspec) do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+end
+
+task :default => :rspec
+
View
0  spec/fixtures/.gitkeep
No changes.
View
14 spec/requests/home_page_spec.rb
@@ -0,0 +1,14 @@
+require "spec_helper"
+
+feature "The Next Big Thing Homepage", %q{
+ In order to get informed about the next big thing
+ As a person
+ I want to be able to read about nothing definite about it and sign up for more info
+} do
+
+ scenario "The Homepage" do
+ visit "/"
+ page.should have_content("The next big Thing")
+ page.should have_content("Find nothing out about it right here!")
+ end
+end
View
3  spec/spec_helper.rb
@@ -2,11 +2,10 @@
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
+require 'capybara/rspec'
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
RSpec.configure do |config|
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
- config.use_transactional_fixtures = false
config.order = "random"
end
Please sign in to comment.
Something went wrong with that request. Please try again.