Class: Cypress::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cypress/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/cypress/configuration.rb', line 5

def initialize
  @test_framework = :rspec
  @db_resetter    = :database_cleaner
  @before         = proc {}
end

Instance Attribute Details

#cache_classesObject

Returns the value of attribute cache_classes.



3
4
5
# File 'lib/cypress/configuration.rb', line 3

def cache_classes
  @cache_classes
end

#db_resetterObject

Returns the value of attribute db_resetter.



3
4
5
# File 'lib/cypress/configuration.rb', line 3

def db_resetter
  @db_resetter
end

#test_frameworkObject

Returns the value of attribute test_framework.



3
4
5
# File 'lib/cypress/configuration.rb', line 3

def test_framework
  @test_framework
end

Instance Method Details

#before(&block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/cypress/configuration.rb', line 11

def before(&block)
  if block_given?
    @before = block
  else
    @before
  end
end

#disable_class_cachingObject



23
24
25
26
27
# File 'lib/cypress/configuration.rb', line 23

def disable_class_caching
  if @cache_classes.nil?
    @cache_classes = false
  end
end