开发者

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

开发者 https://www.devze.com 2023-02-25 15:36 出处:网络
I have the following in my GEMFILE: group :development do gem开发者_如何学Go \'rspec-rails\' gem \'annotate-models\'

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

精彩评论

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