Module: UnitRecord
- Defined in:
- lib/unit_record.rb,
lib/unit_record/column_extension.rb,
lib/unit_record/association_stubbing.rb,
lib/unit_record/disconnected_fixtures.rb,
lib/unit_record/disconnected_test_case.rb,
lib/unit_record/disconnected_active_record.rb
Defined Under Namespace
Modules: AssociationStubbing, ColumnExtension, DisconnectedActiveRecord, DisconnectedFixtures, DisconnectedTestCase
Class Method Summary
collapse
Class Method Details
.base_rails_test_class ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/unit_record.rb', line 6
def self.base_rails_test_class
if rails_version >= "2.3.1"
ActiveSupport::TestCase
else
Test::Unit::TestCase
end
end
|
.rails_version ⇒ Object
2
3
4
|
# File 'lib/unit_record.rb', line 2
def self.rails_version
Rails::VERSION::STRING
end
|