Commit 6b8ba314cc8178b24b6d81000db2142015964d65

Authored by Joenio Costa
Committed by Daniela Feitosa
1 parent d7b0f561

Fixing tests

- Default theme while running tests should be a real theme (using
  'noosfero' theme)
- Disable translation while running tests
test/fixtures/environments.yml
... ... @@ -4,7 +4,7 @@ colivre_net:
4 4 name: 'Colivre.net'
5 5 contact_email: 'colivre@localhost.localdomain'
6 6 is_default: true
7   - theme: 'default'
  7 + theme: 'noosfero'
8 8 anhetegua_net:
9 9 id: 2
10 10 name: 'Anheteguá'
... ...
test/test_helper.rb
... ... @@ -15,6 +15,9 @@ FileUtils.rm_rf(File.join(RAILS_ROOT, 'index', 'test'))
15 15 Image.attachment_options[:path_prefix] = 'test/tmp/public/images'
16 16 Thumbnail.attachment_options[:path_prefix] = 'test/tmp/public/thumbnails'
17 17  
  18 +FastGettext.add_text_domain 'noosferotest', :type => :chain, :chain => []
  19 +FastGettext.default_text_domain = 'noosferotest'
  20 +
18 21 class Test::Unit::TestCase
19 22 # Transactional fixtures accelerate your tests by wrapping each test method
20 23 # in a transaction that's rolled back on completion. This ensures that the
... ...