Sha256: 5c5c36fbed14447008d8ffc030082b32efcd57d06b37956a9bbf4fee30c5b56d

Contents?: true

Size: 296 Bytes

Versions: 25

Compression:

Stored size: 296 Bytes

Contents

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

25 entries across 25 versions & 2 rubygems

Version Path
devtools-0.1.26 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.25 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.24 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.23 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.22 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.21 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.20 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.19 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.18 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.16 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.15 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.14 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.13 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.12 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.11 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.10 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.9 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.8 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.7 shared/spec/shared/each_method_behaviour.rb
devtools-0.1.6 shared/spec/shared/each_method_behaviour.rb