Sha256: 65947f8be48c4850382a8dbf78d41f562973ea76a1cbf816362282abea50c693
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
require 'spec_helper' describe Jasmine::Headless::UniqueAssetList do let(:list) { described_class.new } let(:first) { stub(:logical_path => 'one') } let(:second) { stub(:logical_path => 'two') } let(:third) { stub(:logical_path => '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
5 entries across 5 versions & 1 rubygems