Module: TestRecorder

Defined in:
lib/test_recorder.rb,
lib/test_recorder/rspec.rb,
lib/test_recorder/version.rb,
lib/test_recorder/cdp_recorder.rb,
lib/test_recorder/rspec/example_wrapper.rb,
lib/test_recorder/rails/setup_and_teardown.rb

Defined Under Namespace

Modules: RSpec, Rails Classes: CdpRecorder

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.disable!Object



9
10
11
# File 'lib/test_recorder.rb', line 9

def disable!
  @enable = false
end

.enable!Object



5
6
7
# File 'lib/test_recorder.rb', line 5

def enable!
  @enable = true
end

.enabled?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/test_recorder.rb', line 13

def enabled?
  defined?(@enable) ? @enable : true
end