Sha256: 6fa9b967e025f8a617a4c3b9786afd8484a9c7928417395d5e170a52147b7514

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 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
      expect(subject.to_a).to eql(object.to_a)
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
devtools-0.1.2 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.1 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.0 shared/spec/shared/each_method_behaviour.rb
develry-0.0.3 shared/spec/shared/each_method_behaviour.rb
develry-0.0.2 shared/spec/shared/each_method_behaviour.rb