Sha256: 1de2fee8052416bd5f33456e553d975dcd9c6f2e6419e8d4f57624f2ff68dfc6

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Test
    module RSpec
      module GremlinContext
      end

      ::RSpec.shared_context GremlinContext do
        include GremlinContext
        include Grumlin::Sugar

        before do
          Grumlin::Tools.constants.each do |tool|
            stub_const(tool.to_s, Grumlin::Tools.const_get(tool))
          end
        end

        after do
          Grumlin.close
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grumlin-0.12.5 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.12.4 lib/grumlin/test/rspec/gremlin_context.rb