Sha256: 266f79af8807bc6a340aade1d14e2763a3ea2184e3dc0d6b7626c0d9c0c16764
Contents?: true
Size: 465 Bytes
Versions: 5
Compression:
Stored size: 465 Bytes
Contents
require 'rspec-steps/duckpunch/example-group' require 'rspec-steps/stepwise' require 'rspec/core/shared_example_group' module RSpec::Core::SharedExampleGroup alias shared_steps shared_examples if respond_to? :share_as alias steps_shared_as share_as end end [self, RSpec].each do |thing| if thing.respond_to? :shared_examples and not thing.respond_to? :shared_steps thing.instance_exec do alias shared_steps shared_examples end end end
Version data entries
5 entries across 5 versions & 1 rubygems