# features/my_shiny_feature_spec.rb
require 'feature_helper'
RSpec.describe 'My feature with map generator' do
include_context 'simple git repository'
let(:map_generator_config) do
# must return a string containing the code that will be written in spec_helper.rb
<<~CONFIG
Crystalball::MapGenerator.start! do |c|
c.register Crystalball::MapGenerator::CoverageStrategy.new
end
Crystalball::Rails::TablesMapGenerator.start! # if it also needs a table map
CONFIG
end
# ...
end
Usage