flowerbox-delivery/spec/flowerbox/delivery/unique_asset_list_spec.rb
2012-01-30 11:34:57 -05:00

19 lines
466 B
Ruby

require 'spec_helper'
describe Flowerbox::Delivery::UniqueAssetList do
let(:unique_asset_list) { described_class.new }
describe "#add" do
let(:first) { Pathname.new('one') }
let(:second) { Pathname.new('one') }
let(:third) { Pathname.new('two') }
it 'should not add assets already added' do
unique_asset_list.add(first)
unique_asset_list.add([ second, third ])
unique_asset_list.should == [ first, third ]
end
end
end