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.23.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.22.5 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.22.4 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.22.3 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.22.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.22.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.22.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.21.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.21.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.20.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.20.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.20.0 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.7 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.6 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.5 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.4 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.3 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.2 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.1 lib/grumlin/test/rspec/gremlin_context.rb
grumlin-0.19.0 lib/grumlin/test/rspec/gremlin_context.rb