Permalink
Browse files

Actually require matchers/context from shoulda

  • Loading branch information...
1 parent 7c48ffe commit 5f258c72d68ca5638adc2d4752c8520e7d49c4de @jferris jferris committed Jan 19, 2011
Showing with 12 additions and 2 deletions.
  1. +1 −2 features/rails_integration.feature
  2. +7 −0 features/step_definitions/rails_steps.rb
  3. +4 −0 lib/shoulda.rb
@@ -32,8 +32,7 @@ Feature: integrate with Rails
When I configure a wildcard route
Scenario: generate a rails application and use matchers in Test::Unit
- When I configure the application to use shoulda-context
- When I configure the application to use shoulda-matchers
+ When I configure the application to use shoulda
And I write to "test/unit/user_test.rb" with:
"""
require 'test_helper'
@@ -36,6 +36,13 @@
steps %{And I run "bundle install --local"}
end
+When /^I configure the application to use shoulda$/ do
+ append_to_gemfile "gem 'shoulda-matchers', :git => 'git@github.com:thoughtbot/shoulda-matchers.git', :require => false"
+ append_to_gemfile "gem 'shoulda-context', :git => 'git@github.com:thoughtbot/shoulda-context.git', :require => false"
+ append_to_gemfile "gem 'shoulda', :path => '../../..'"
+ steps %{And I run "bundle install --local"}
+end
+
When /^I configure the application to use shoulda-matchers$/ do
append_to_gemfile "gem 'shoulda-matchers', :git => 'git@github.com:thoughtbot/shoulda-matchers.git'"
steps %{And I run "bundle install --local"}
View
@@ -0,0 +1,4 @@
+require 'shoulda/version'
+require 'shoulda-matchers'
+require 'shoulda-context'
+

0 comments on commit 5f258c7

Please sign in to comment.