Class: Spec::Runner::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/rails/extensions/spec/runner/configuration.rb

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject



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_fixturesObject



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_fixturesObject



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_fixturesObject



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