Sha256: 9c77834462c647e3e3f7b6a159e90c7c199ff7d652302a05c4936df94fa8f84e

Contents?: true

Size: 480 Bytes

Versions: 39

Compression:

Stored size: 480 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::Expressions.constants.each do |tool|
            stub_const(tool.to_s, Grumlin::Expressions.const_get(tool))
          end
        end

        after do
          Grumlin.close
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
grumlin-0.18.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.18.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.17.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.16.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.16.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.15.6 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.15.4 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.15.3 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.15.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.15.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.15.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.14.5 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.14.4 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.14.3 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.14.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.14.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.14.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.13.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.13.0 lib/grumlin/test/rspec/gremlin_context.rb