Commit 8c9632f9f184984d798e0455d41a24fb9f1e56cc
1 parent
ee8510cb
Exists in
staging
and in
21 other branches
test: support spec dsl and don't require concerns
Showing
4 changed files
with
2 additions
and
12 deletions
Show diff stats
app/models/user.rb
config/initializers/00_dependencies.rb
config/initializers/active_record_extensions.rb
test/test_helper.rb
| ... | ... | @@ -8,7 +8,7 @@ require 'rails/test_help' |
| 8 | 8 | |
| 9 | 9 | require 'mocha' |
| 10 | 10 | require 'mocha/mini_test' |
| 11 | - | |
| 11 | +require "minitest/spec" | |
| 12 | 12 | require "minitest/reporters" |
| 13 | 13 | Minitest::Reporters.use! Minitest::Reporters::ProgressReporter.new, ENV, Minitest.backtrace_filter |
| 14 | 14 | |
| ... | ... | @@ -52,19 +52,13 @@ class ActiveSupport::TestCase |
| 52 | 52 | # then set this back to true. |
| 53 | 53 | self.use_instantiated_fixtures = false |
| 54 | 54 | |
| 55 | - # Add more helper methods to be used by all tests here... | |
| 55 | + extend Test::Should | |
| 56 | 56 | |
| 57 | - # for fixture_file_upload | |
| 58 | 57 | include ActionDispatch::TestProcess |
| 59 | - | |
| 60 | 58 | include Noosfero::Factory |
| 61 | - | |
| 62 | 59 | include AuthenticatedTestHelper |
| 63 | - | |
| 64 | 60 | include PerformanceHelper |
| 65 | 61 | |
| 66 | - extend Test::Should | |
| 67 | - | |
| 68 | 62 | fixtures :environments, :roles |
| 69 | 63 | |
| 70 | 64 | def self.all_fixtures | ... | ... |