Commit adcc77bbb1659a0863af2f57f6bcab43af8dfce5
Exists in
master
and in
23 other branches
Merge commit 'refs/merge-requests/80' of git://gitorious.org/noosfero/noosfero i…
…nto merge-requests/80
Showing
3 changed files
with
10 additions
and
3 deletions
Show diff stats
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' | ... | ... |