Commit 6b8ba314cc8178b24b6d81000db2142015964d65
Committed by
Daniela Feitosa
1 parent
d7b0f561
Exists in
master
and in
28 other branches
Fixing tests
- Default theme while running tests should be a real theme (using 'noosfero' theme) - Disable translation while running tests
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
test/fixtures/environments.yml
@@ -4,7 +4,7 @@ colivre_net: | @@ -4,7 +4,7 @@ colivre_net: | ||
4 | name: 'Colivre.net' | 4 | name: 'Colivre.net' |
5 | contact_email: 'colivre@localhost.localdomain' | 5 | contact_email: 'colivre@localhost.localdomain' |
6 | is_default: true | 6 | is_default: true |
7 | - theme: 'default' | 7 | + theme: 'noosfero' |
8 | anhetegua_net: | 8 | anhetegua_net: |
9 | id: 2 | 9 | id: 2 |
10 | name: 'Anheteguá' | 10 | name: 'Anheteguá' |
test/test_helper.rb
@@ -15,6 +15,9 @@ FileUtils.rm_rf(File.join(RAILS_ROOT, 'index', 'test')) | @@ -15,6 +15,9 @@ FileUtils.rm_rf(File.join(RAILS_ROOT, 'index', 'test')) | ||
15 | Image.attachment_options[:path_prefix] = 'test/tmp/public/images' | 15 | Image.attachment_options[:path_prefix] = 'test/tmp/public/images' |
16 | Thumbnail.attachment_options[:path_prefix] = 'test/tmp/public/thumbnails' | 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 | class Test::Unit::TestCase | 21 | class Test::Unit::TestCase |
19 | # Transactional fixtures accelerate your tests by wrapping each test method | 22 | # Transactional fixtures accelerate your tests by wrapping each test method |
20 | # in a transaction that's rolled back on completion. This ensures that the | 23 | # in a transaction that's rolled back on completion. This ensures that the |