Module: HaveSpecHelper

Defined in:
lib/gems/rspec-1.1.11/spec/spec/matchers/have_spec.rb

Instance Method Summary collapse

Instance Method Details

#create_collection_owner_with(n) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/gems/rspec-1.1.11/spec/spec/matchers/have_spec.rb', line 4

def create_collection_owner_with(n)
  owner = Spec::Expectations::Helper::CollectionOwner.new
  (1..n).each do |n|
    owner.add_to_collection_with_length_method(n)
    owner.add_to_collection_with_size_method(n)
  end
  owner
end