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
mutant-0.3.0.beta13 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta12 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta11 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta10 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta9 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta8 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta7 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta6 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta5 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta4 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta3 test_app/spec/shared/each_method_behaviour.rb
mutant-0.3.0.beta2 test_app/spec/shared/each_method_behaviour.rb
adamantium-0.0.8 spec/shared/each_method_behaviour.rb
mutant-0.2.20 test_app/spec/shared/each_method_behaviour.rb
abstract_type-0.0.5 spec/shared/each_method_behaviour.rb
equalizer-0.0.5 spec/shared/each_method_behaviour.rb
adamantium-0.0.7 spec/shared/each_method_behaviour.rb
anima-0.0.5 spec/shared/each_method_behaviour.rb
abstract_type-0.0.4 spec/shared/each_method_behaviour.rb
mutant-0.2.17 test_app/spec/shared/each_method_behaviour.rb