Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Install rspec and cucumber

  • Loading branch information...
commit 5f50e038bac23298a360a44babf5183684769165 1 parent d226e46
@bovinespirit authored
Showing with 64 additions and 7 deletions.
  1. +11 −1 Gemfile
  2. +49 −5 Gemfile.lock
  3. +4 −1 config/database.yml
View
12 Gemfile
@@ -40,4 +40,14 @@ gem 'thin'
# gem 'debugger'
# Use RSpec, it's what the cool kids are doing
-gem 'rspec'
+group :test, :development do
+ gem "rspec-rails", "~> 2.0"
+ gem "webrat"
+end
+
+# https://github.com/cucumber/cucumber-rails/blob/master/README.md
+group :test do
+ gem 'cucumber-rails', :require => false
+ # database_cleaner is not required, but highly recommended
+ gem 'database_cleaner'
+end
View
54 Gemfile.lock
@@ -30,6 +30,15 @@ GEM
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.4)
+ capybara (2.0.0)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 1.0.0)
+ childprocess (0.3.6)
+ ffi (~> 1.0, >= 1.0.6)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -37,12 +46,25 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.4.0)
+ cucumber (1.2.1)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.3)
+ gherkin (~> 2.11.0)
+ json (>= 1.4.6)
+ cucumber-rails (1.3.0)
+ capybara (>= 1.1.2)
+ cucumber (>= 1.1.8)
+ nokogiri (>= 1.5.0)
daemons (1.1.9)
+ database_cleaner (0.9.1)
diff-lcs (1.1.3)
erubis (2.7.0)
eventmachine (1.0.0)
execjs (1.4.0)
multi_json (~> 1.0)
+ ffi (1.1.5)
+ gherkin (2.11.5)
+ json (>= 1.4.6)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
@@ -50,12 +72,15 @@ GEM
railties (>= 3.1.0, < 5.0)
thor (~> 0.14)
json (1.7.5)
+ libwebsocket (0.1.6.1)
+ websocket
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
multi_json (1.3.7)
+ nokogiri (1.5.5)
pg (0.14.1)
polyglot (0.3.3)
rack (1.4.1)
@@ -83,19 +108,28 @@ GEM
rake (10.0.2)
rdoc (3.12)
json (~> 1.4)
- rspec (2.12.0)
- rspec-core (~> 2.12.0)
- rspec-expectations (~> 2.12.0)
- rspec-mocks (~> 2.12.0)
rspec-core (2.12.0)
rspec-expectations (2.12.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.0)
+ rspec-rails (2.12.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec-core (~> 2.12.0)
+ rspec-expectations (~> 2.12.0)
+ rspec-mocks (~> 2.12.0)
+ rubyzip (0.9.9)
sass (3.2.3)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
+ selenium-webdriver (2.26.0)
+ childprocess (>= 0.2.5)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
+ rubyzip
sprockets (2.2.1)
hike (~> 1.2)
multi_json (~> 1.0)
@@ -114,16 +148,26 @@ GEM
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
+ webrat (0.7.3)
+ nokogiri (>= 1.2.0)
+ rack (>= 1.0)
+ rack-test (>= 0.5.3)
+ websocket (1.0.3)
+ xpath (1.0.0)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
coffee-rails (~> 3.2.1)
+ cucumber-rails
+ database_cleaner
jquery-rails
pg
rails (= 3.2.9)
- rspec
+ rspec-rails (~> 2.0)
sass-rails (~> 3.2.3)
thin
uglifier (>= 1.0.3)
+ webrat
View
5 config/database.yml
@@ -12,7 +12,7 @@ development:
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
-test:
+test: &test
adapter: sqlite3
database: db/test.sqlite3
pool: 5
@@ -23,3 +23,6 @@ production:
database: db/production.sqlite3
pool: 5
timeout: 5000
+
+cucumber:
+ <<: *test
Please sign in to comment.
Something went wrong with that request. Please try again.