Sha256: 34ec53215a63eb1db181aea8eda271569e90e781a3d036d4fa297fe5bba1821b

Contents?: true

Size: 311 Bytes

Versions: 121

Compression:

Stored size: 311 Bytes

Contents

# encoding: utf-8

shared_examples_for 'an #each method' do
  it_should_behave_like 'a command method'

  context 'with no block' do
    subject { object.each }

    it { should be_instance_of(to_enum.class) }

    it 'yields the expected values' do
      subject.to_a.should eql(object.to_a)
    end
  end
end

Version data entries

121 entries across 102 versions & 13 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/inflecto-0.0.2/spec/shared/each_method_behaviour.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/inflecto-0.0.2/spec/shared/each_method_behaviour.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/inflecto-0.0.2/spec/shared/each_method_behaviour.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/inflecto-0.0.2/spec/shared/each_method_behaviour.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/inflecto-0.0.2/spec/shared/each_method_behaviour.rb
mutant-0.5.13 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.12 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.11 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.10 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.9 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.8 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.7 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.6 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.5 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.4 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.3 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.2 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.1 test_app/spec/shared/each_method_behaviour.rb
mutant-0.5.0 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.6 test_app/spec/shared/each_method_behaviour.rb