Method: AppMap::RSpec.begin_spec
- Defined in:
- lib/appmap/rspec.rb
.begin_spec(example) ⇒ Object
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/appmap/rspec.rb', line 164 def begin_spec(example) AppMap::DetectEnabled.discourage_conflicting_recording_methods :rspec if first_recording? @recording_count += 1 # Disable RSpec recording for RSwag, because all the action happens in the before block. # The example is empty except for assertions. So RSwag has its own recorder, and RSpec # recording is disabled so it won't clobber the AppMap with empty data. recording = if example.[:appmap] == false || example.[:rswag] :disabled else Recording.new(example) end @recordings_by_example[example] = recording end |