diff --git a/spec/support/contexts/kangaru_initialised.rb b/spec/support/contexts/kangaru_initialised.rb new file mode 100644 index 0000000..e97952d --- /dev/null +++ b/spec/support/contexts/kangaru_initialised.rb @@ -0,0 +1,11 @@ +RSpec.shared_context :kangaru_initialised do + before do + gem.main_file.write(<<~RUBY) + require "kangaru" + + module SomeGem + extend Kangaru::Initialiser + end + RUBY + end +end