Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update dependencies and get tests passing.

  • Loading branch information...
commit 34d9f4a6b8f190ed154a484d2fb444bcb60b4ba5 1 parent 058724b
Gabe Berke-Williams authored March 23, 2012
6  features/rails_integration.feature
@@ -13,7 +13,7 @@ Feature: integrate with Rails
13 13
         end
14 14
       end
15 15
       """
16  
-    When I successfully run "rake db:migrate --trace"
  16
+    When I successfully run `bundle exec rake db:migrate --trace`
17 17
     And I write to "app/models/user.rb" with:
18 18
       """
19 19
       class User < ActiveRecord::Base
@@ -54,7 +54,7 @@ Feature: integrate with Rails
54 54
         should assign_to(:example)
55 55
       end
56 56
       """
57  
-    When I successfully run "rake test TESTOPTS=-v --trace"
  57
+    When I successfully run `bundle exec rake test TESTOPTS='-v' --trace`
58 58
     Then the output should contain "1 tests, 1 assertions, 0 failures, 0 errors"
59 59
     And the output should contain "2 tests, 2 assertions, 0 failures, 0 errors"
60 60
     And the output should contain "User should require name to be set"
@@ -81,7 +81,7 @@ Feature: integrate with Rails
81 81
         it { should assign_to(:example) }
82 82
       end
83 83
       """
84  
-    When I successfully run "rake spec SPEC_OPTS=-fs --trace"
  84
+    When I successfully run `bundle exec rake spec SPEC_OPTS=-fs --trace`
85 85
     Then the output should contain "2 examples, 0 failures"
86 86
     And the output should contain "should require name to be set"
87 87
     And the output should contain "should assign @example"
20  features/step_definitions/rails_steps.rb
@@ -3,49 +3,49 @@
3 3
 
4 4
 When /^I generate a new rails application$/ do
5 5
   steps %{
6  
-    When I run "rails _3.0.3_ new #{APP_NAME}"
  6
+    When I run `rails _3.0.12_ new #{APP_NAME}`
7 7
     And I cd to "#{APP_NAME}"
8 8
     And I write to "Gemfile" with:
9 9
       """
10 10
       source "http://rubygems.org"
11  
-      gem 'rails', '3.0.3'
12  
-      gem 'sqlite3-ruby', :require => 'sqlite3'
  11
+      gem 'rails', '3.0.12'
  12
+      gem 'sqlite3'
13 13
       """
14  
-    And I successfully run "bundle install --local"
  14
+    And I successfully run `bundle install --local`
15 15
   }
16 16
 end
17 17
 
18 18
 When /^I configure the application to use "([^\"]+)" from this project$/ do |name|
19 19
   append_to_gemfile "gem '#{name}', :path => '#{PROJECT_ROOT}'"
20  
-  steps %{And I run "bundle install --local"}
  20
+  steps %{And I run `bundle install --local`}
21 21
 end
22 22
 
23 23
 When /^I run the rspec generator$/ do
24 24
   steps %{
25  
-    When I successfully run "rails generate rspec:install"
  25
+    When I successfully run `rails generate rspec:install`
26 26
   }
27 27
 end
28 28
 
29 29
 When /^I configure the application to use rspec\-rails$/ do
30 30
   append_to_gemfile "gem 'rspec-rails'"
31  
-  steps %{And I run "bundle install --local"}
  31
+  steps %{And I run `bundle install --local`}
32 32
 end
33 33
 
34 34
 When /^I configure the application to use shoulda-context$/ do
35 35
   append_to_gemfile "gem 'shoulda-context', :git => 'git@github.com:thoughtbot/shoulda-context.git'"
36  
-  steps %{And I run "bundle install --local"}
  36
+  steps %{And I run `bundle install --local`}
37 37
 end
38 38
 
39 39
 When /^I configure the application to use shoulda$/ do
40 40
   append_to_gemfile "gem 'shoulda-matchers', :git => 'git@github.com:thoughtbot/shoulda-matchers.git', :require => false"
41 41
   append_to_gemfile "gem 'shoulda-context', :git => 'git@github.com:thoughtbot/shoulda-context.git', :require => false"
42 42
   append_to_gemfile "gem 'shoulda', :path => '../../..'"
43  
-  steps %{And I run "bundle install --local"}
  43
+  steps %{And I run `bundle install --local`}
44 44
 end
45 45
 
46 46
 When /^I configure the application to use shoulda-matchers$/ do
47 47
   append_to_gemfile "gem 'shoulda-matchers', :git => 'git@github.com:thoughtbot/shoulda-matchers.git'"
48  
-  steps %{And I run "bundle install --local"}
  48
+  steps %{And I run `bundle install --local`}
49 49
 end
50 50
 
51 51
 When /^I configure a wildcard route$/ do
8  shoulda.gemspec
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
20 20
   s.add_dependency("shoulda-context", "~> 1.0.0")
21 21
   s.add_dependency("shoulda-matchers", "~> 1.0.0")
22 22
 
23  
-  s.add_development_dependency("rails", "3.0.3")
  23
+  s.add_development_dependency("rails", "3.0.12")
24 24
   s.add_development_dependency("sqlite3", "~> 1.3.2")
25  
-  s.add_development_dependency("rspec-rails", "~> 2.3.1")
26  
-  s.add_development_dependency("cucumber", "~> 0.10.0")
27  
-  s.add_development_dependency("aruba", "~> 0.2.7")
  25
+  s.add_development_dependency("rspec-rails", "~> 2.7.0")
  26
+  s.add_development_dependency("cucumber", "~> 1.1.0")
  27
+  s.add_development_dependency("aruba", "~> 0.4.11")
28 28
 end

0 notes on commit 34d9f4a

Please sign in to comment.
Something went wrong with that request. Please try again.