Commit 15e732163e3bb5354b3ae848f5ba941b627057cd

Authored by Joenio Costa
1 parent cb340c2b

Documenting cucumber's dependencies and updading HACKING doc

(ActionItem2203)
HACKING
... ... @@ -13,7 +13,7 @@ After installing the requirements listed in INSTALL, you need to install some
13 13 packages be able to run Noosfero tests. On Debian GNU/Linux and Debian-based
14 14 systems, you install them with the following command:
15 15  
16   - # apt-get install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb
  16 + # apt-get install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb libxml2-dev libxslt-dev
17 17  
18 18 On other systems, they may or may not be available through your regular package
19 19 management system. Below are the links to their homepages.
... ... @@ -24,6 +24,8 @@ management system. Below are the links to their homepages.
24 24 * Imagemagick: http://wwwimagemagick.org/
25 25 * po4a: http://po4a.alioth.debian.org/
26 26 * xvfb: http://packages.debian.org/lenny/xvfb
  27 +* Libxml2: http://xmlsoft.org/
  28 +* Libxslt: http://xmlsoft.org/xslt
27 29  
28 30 == Boostraping a development/test environment
29 31  
... ... @@ -46,6 +48,9 @@ commands and make sure you understand what you are doing):
46 48 rake makemo
47 49 # create some test data:
48 50 ./script/sample-data
  51 + # install latest requirements for running tests
  52 + RAILS_ENV=cucumber rake gems:install
  53 + RAILS_ENV=test rake gems:install
49 54 # run the automated test suite to make sure your environment is sane:
50 55 rake test
51 56  
... ...
config/environments/cucumber.rb
... ... @@ -21,8 +21,8 @@ config.action_mailer.delivery_method = :test
21 21  
22 22 config.gem 'cucumber', :lib => false, :version => '0.4.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
23 23 config.gem 'webrat', :lib => false, :version => '0.5.1' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
24   -config.gem 'rspec', :lib => 'spec', :version => '>=1.2.8' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
25   -config.gem 'rspec-rails', :lib => 'spec/rails', :version => '>=1.2.7.1' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
  24 +config.gem 'rspec', :lib => 'spec', :version => '1.2.9' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
  25 +config.gem 'rspec-rails', :lib => 'spec/rails', :version => '1.2.9' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
26 26 config.gem 'Selenium', :lib => 'selenium', :version => '>= 1.1.14' unless File.directory?(File.join(Rails.root, 'vendor/plugins/selenium'))
27 27 config.gem 'selenium-client', :lib => 'selenium/client', :version => '>= 1.2.17' unless File.directory?(File.join(Rails.root, 'vendor/plugins/selenium-client'))
28 28 config.gem 'database_cleaner', :lib => 'database_cleaner'
... ...
config/environments/test.rb
... ... @@ -20,3 +20,5 @@ config.action_controller.allow_forgery_protection = false
20 20 # The :test delivery method accumulates sent emails in the
21 21 # ActionMailer::Base.deliveries array.
22 22 config.action_mailer.delivery_method = :test
  23 +
  24 +config.gem 'exception_notification', :lib => 'exception_notification', :version => '1.0.20090728'
... ...