开发者

What's the Difference between the Rspec and Rspec-Rails Gem?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜