Class: Spec::Runner::Configuration
- Inherits:
-
Object
- Object
- Spec::Runner::Configuration
- Defined in:
- lib/spec/rails/extensions/spec/runner/configuration.rb
Instance Method Summary collapse
- #fixture_path ⇒ Object
- #fixture_path=(path) ⇒ Object
- #global_fixtures ⇒ Object
- #global_fixtures=(fixtures) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #use_instantiated_fixtures ⇒ Object
- #use_instantiated_fixtures=(value) ⇒ Object
- #use_transactional_fixtures ⇒ Object
- #use_transactional_fixtures=(value) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 9 def initialize super self.fixture_path = RAILS_ROOT + '/spec/fixtures' end |
Instance Method Details
#fixture_path ⇒ Object
28 29 30 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 28 def fixture_path ActiveSupport::TestCase.fixture_path end |
#fixture_path=(path) ⇒ Object
31 32 33 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 31 def fixture_path=(path) ActiveSupport::TestCase.fixture_path = path end |
#global_fixtures ⇒ Object
35 36 37 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 35 def global_fixtures ActiveSupport::TestCase.fixture_table_names end |
#global_fixtures=(fixtures) ⇒ Object
38 39 40 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 38 def global_fixtures=(fixtures) ActiveSupport::TestCase.fixtures(*fixtures) end |
#use_instantiated_fixtures ⇒ Object
21 22 23 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 21 def use_instantiated_fixtures ActiveSupport::TestCase.use_instantiated_fixtures end |
#use_instantiated_fixtures=(value) ⇒ Object
24 25 26 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 24 def use_instantiated_fixtures=(value) ActiveSupport::TestCase.use_instantiated_fixtures = value end |
#use_transactional_fixtures ⇒ Object
14 15 16 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 14 def use_transactional_fixtures ActiveSupport::TestCase.use_transactional_fixtures end |
#use_transactional_fixtures=(value) ⇒ Object
17 18 19 |
# File 'lib/spec/rails/extensions/spec/runner/configuration.rb', line 17 def use_transactional_fixtures=(value) ActiveSupport::TestCase.use_transactional_fixtures = value end |