Sha256: c819e276082e69b04f481b2b8ca0020ea6635e7c447eeaf902931a4abe4ff199
Contents?: true
Size: 615 Bytes
Versions: 6
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' describe Jasmine::Headless::UniqueAssetList do let(:list) { described_class.new } let(:first) { stub(:logical_path => 'one', :pathname => 'one') } let(:second) { stub(:logical_path => 'two', :pathname => 'two') } let(:third) { stub(:logical_path => 'two', :pathname => 'two') } it 'should raise an exception on a non-asset' do expect { list << "whatever" }.to raise_error(StandardError) end it 'should not add the same asset with the same logical path twice' do list << first list << second list << third list.to_a.should == [ first, second ] end end
Version data entries
6 entries across 6 versions & 2 rubygems