Class: ActiveSupport::TestCase
- Inherits:
-
Cybertrain::Test::Base
- Object
- Cybertrain::Test::Base
- ActiveSupport::TestCase
- Defined in:
- cybertrain/test/test_case.rb
Overview
Rails’ base class for model, job, mailer and other tests: every assertion, the time helpers and the fixture accessors.
Direct Known Subclasses
Class Method Summary collapse
-
.fixtures(name) ⇒ nil
fixtures :allis accepted and does nothing: every fixture is loaded for every test.
Methods inherited from Cybertrain::Test::Base
Class Method Details
.fixtures(name) ⇒ nil
fixtures :all is accepted and does nothing: every fixture is loaded
for every test. Any other set is refused.
114 115 116 117 118 119 120 121 |
# File 'cybertrain/test/test_case.rb', line 114 def self.fixtures(name) unless name == :all = "fixtures :all is the only form: every fixture is loaded for every test" raise ArgumentError, end nil end |