Sha256: d3df4947303160c49b676c5e14b39f815ef8cfba76db829497d0173f9ccb7fea

Contents?: true

Size: 540 Bytes

Versions: 6

Compression:

Stored size: 540 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::Sugar::HELPERS.each do |helper|
            name = helper.name.split("::").last
            stub_const(name, helper)
          end
        end

        after do
          Grumlin.config.default_pool.close
          Grumlin.config.reset!
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grumlin-0.7.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.6.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.6.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.6.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.5.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.5.0 lib/grumlin/test/rspec/gremlin_context.rb