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
veritas-0.0.5 spec/shared/each_method_behaviour.rb