shared_examples_for "require 'dm-aggregates'" do

  %w[ Repository Model Collection Query ].each do |name|
    it "should include the aggregate api in DataMapper::#{name}" do
      (DataMapper.const_get(name) < DataMapper::Aggregates.const_get(name)).should be_true
    end
  end

  it "should include the aggregate api into the adapter" do
    @adapter.respond_to?(:aggregate).should be_true
  end

end

shared_examples_for "require 'dm-aggregates'" do

  %w[ Repository Model Collection Query ].each do |name|
    it "should include the aggregate api in DataMapper::#{name}" do
      (DataMapper.const_get(name) < DataMapper::Aggregates.const_get(name)).should be(true)
    end
  end

  it "should include the aggregate api into the adapter" do
    @adapter.respond_to?(:aggregate).should be(true)
  end

end

Change be_true and be_false to be(true) and be(false) in specs
Change be_true and be_false to be(true) and be(false) in specs
