Sha256: 5b7c4d6c222d54aeb53a7c91264bcda7b0520635a05c8d63c1c693c1dca26f18

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 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_kind_of(to_enum.class) }

    it 'yields the expected values' do
      subject.to_a.should == object.to_a
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/shared/each_method_behaviour.rb