Sha256: 26f1601c917baa914c3ecd71eb0b80acd3518fd94087845ba6b58cc6f22a76d2

Contents?: true

Size: 483 Bytes

Versions: 14

Compression:

Stored size: 483 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

permutations =
  (%w(stub instance_of strong).permutation.to_a + %w(instance_of strong).permutation.to_a).
  map { |parts| parts.join('.') }

permutations.each do |permutation|
  describe permutation, is_instance_of: true, is_strong: true do
    include_context 'stub + instance_of + strong'

    define_method(:double_definition_creator_for) do |object, &block|
      eval(permutation + '(object, &block)')
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rr-3.1.1 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.1.0 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.9 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.8 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.7 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.6 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.5 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.4 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.3 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.2 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.1 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-3.0.0 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-1.2.1 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb
rr-1.2.0 spec/suites/rspec_2/functional/stub_instance_of_strong_spec.rb