Skip to content

Commit

Permalink
Create kanagru initialised shared context
Browse files Browse the repository at this point in the history
  • Loading branch information
apexatoll committed Sep 24, 2023
1 parent 9194179 commit 61fbed9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/support/contexts/kangaru_initialised.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 61fbed9

Please sign in to comment.