Sha256: 989a092356339bf7dc22399bb79bcd907b4057ef4db5df62797f5ce70341d8a2

Contents?: true

Size: 488 Bytes

Versions: 9

Compression:

Stored size: 488 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.close
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grumlin-0.12.3 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.12.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.12.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.12.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.11.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.10.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.10.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.9.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.8.0 lib/grumlin/test/rspec/gremlin_context.rb