Add rspec gem to Cucumber definitions
This commit is contained in:
parent
3fcf3e44ae
commit
aa971b23e7
|
@ -62,7 +62,7 @@ Feature: integrate with Rails
|
|||
And the output should contain "ExamplesController should assign @example"
|
||||
|
||||
Scenario: generate a rails application and use matchers in Rspec
|
||||
When I configure the application to use rspec-rails
|
||||
When I configure the application to use rspec and rspec-rails
|
||||
And I configure the application to use "shoulda-matchers" from this project
|
||||
And I run the rspec generator
|
||||
And I write to "spec/models/user_spec.rb" with:
|
||||
|
@ -88,7 +88,7 @@ Feature: integrate with Rails
|
|||
And the output should contain "should assign @example"
|
||||
|
||||
Scenario: generate a Rails application that mixes Rspec and Test::Unit
|
||||
When I configure the application to use rspec-rails in test and development
|
||||
When I configure the application to use rspec and rspec-rails in test and development
|
||||
And I configure the application to use "shoulda-matchers" from this project in test and development
|
||||
And I run the rspec generator
|
||||
And I write to "spec/models/user_spec.rb" with:
|
||||
|
|
|
@ -52,14 +52,16 @@ When 'I run the rspec generator' do
|
|||
}
|
||||
end
|
||||
|
||||
When 'I configure the application to use rspec-rails' do
|
||||
When 'I configure the application to use rspec and rspec-rails' do
|
||||
append_to_gemfile %q(gem 'rspec', '~> 2.13')
|
||||
append_to_gemfile %q(gem 'rspec-rails', '~> 2.13')
|
||||
steps %{And I run `bundle install --local`}
|
||||
end
|
||||
|
||||
When 'I configure the application to use rspec-rails in test and development' do
|
||||
When 'I configure the application to use rspec and rspec-rails in test and development' do
|
||||
append_to_gemfile <<-GEMFILE
|
||||
group :test, :development do
|
||||
gem 'rspec', '~> 2.13'
|
||||
gem 'rspec-rails', '~> 2.13'
|
||||
end
|
||||
GEMFILE
|
||||
|
|
Loading…
Reference in New Issue