Cucumber + Rspec + Rails + Webrat, factor_girl + autotest on MacOSX ... in gem.config?
I found example how to use on:
http://www.claytonlz.com/index.php/2009/04/how-to-setup-rspec-cucumber-webrat-rcov-and-autotest-on-leo开发者_开发百科pard/
but I try to find solution to put this all gems to gem.config (enviroment.rb) with using gemcutter gem repository (this is prefered gems repository now ?)
Maybe some one have properly configured gem.config dependency for:
Cucumber + RSpec + Rails + Factor_Girl + Webrat ... autotest on MacOSX (with Growl)
I want to have all needed gems in gem.config, maybe I expecting to much ;)
Regards, Andrzej
You can simply do the following
sudo gem install cucumber cucumber-rails rspec rspec-rails webrat database_cleaner factory_girl faker
./script/generate rspec
./script/generate cucumber --rspec --webrat
It will setup your config/environments/cucumber.rb You can add the missing ones manually like I did below
config.gem 'database_cleaner', :lib => false, :version => '>=0.4.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/database_cleaner'))
config.gem 'webrat', :lib => false, :version => '>=0.6.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
config.gem 'rspec-rails', :lib => 'spec/rails', :version => '>=1.3.2' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
config.gem 'rspec', :lib => 'spec', :version => '>=1.3.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
config.gem 'cucumber'
config.gem 'cucumber-rails', :lib => 'cucumber/rails', :version => '>=0.2.4' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber-rails'))
config.gem "faker"
config.gem "factory_girl"
Just add :source => "http://gemcutter.org"
to every config.gem line. I'm not sure if all gems are on Gemcutter already though!
精彩评论