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.2.17 test_app/spec/shared/each_method_behaviour.rb
abstract_type-0.0.3 spec/shared/each_method_behaviour.rb
equalizer-0.0.4 spec/shared/each_method_behaviour.rb
adamantium-0.0.6 spec/shared/each_method_behaviour.rb
inflecto-0.0.2 spec/shared/each_method_behaviour.rb
anima-0.0.4 spec/shared/each_method_behaviour.rb
mbj-inflector-0.0.2 spec/shared/each_method_behaviour.rb
mutant-0.2.16 spec/shared/each_method_behaviour.rb
mutant-0.2.16 test_app/spec/shared/each_method_behaviour.rb
equalizer-0.0.3 spec/shared/each_method_behaviour.rb
adamantium-0.0.5 spec/shared/each_method_behaviour.rb
mutant-0.2.15 spec/shared/each_method_behaviour.rb
mutant-0.2.15 test_app/spec/shared/each_method_behaviour.rb
mutant-0.2.14 test_app/spec/shared/each_method_behaviour.rb
mutant-0.2.14 spec/shared/each_method_behaviour.rb
mutant-0.2.13 test_app/spec/shared/each_method_behaviour.rb
mutant-0.2.13 spec/shared/each_method_behaviour.rb
mutant-0.2.12 test_app/spec/shared/each_method_behaviour.rb
mutant-0.2.12 spec/shared/each_method_behaviour.rb
mutant-0.2.11 test_app/spec/shared/each_method_behaviour.rb