Module: MonarchMigrate::Testing::RSpec
- Includes:
- Helpers
- Defined in:
- lib/monarch_migrate/testing.rb
Instance Method Summary
collapse
Methods included from Helpers
#data_migration, #run_data_migration
Instance Method Details
#data_migration_basename ⇒ Object
66
67
68
69
|
# File 'lib/monarch_migrate/testing.rb', line 66
def data_migration_basename
spec_path = ::RSpec.current_example.metadata[:file_path]
File.basename(spec_path).sub(/_spec\.rb$/, ".rb")
end
|
#data_migration_failed(message) ⇒ Object
71
72
73
|
# File 'lib/monarch_migrate/testing.rb', line 71
def data_migration_failed(message)
fail message
end
|