I have the following in my GEMFILE:
group :development do
gem开发者_如何学Go 'rspec-rails'
gem 'annotate-models'
end
group :test do
gem 'rspec'
gem 'webrat'
gem 'spork'
gem 'factory_girl_rails'
end
What's the difference between 'rspec' and 'rspec-rails'?
As stated on their wiki page:
rspec-rails extends RSpec and Ruby on Rails so you can specify the behaviour of your rails web-app.
https://github.com/dchelimsky/rspec/wiki/rails
Whereas the rspec gem has no support for rails, providing a testing framework for plain old ruby applications.
精彩评论