Sha256: ca82b69d897acc6a811766a560cc0d9bfcd2f8dd0027779a3c06edd734da2549
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
require 'spec_helper' describe Reviewed::Product do describe 'attachments' do use_vcr_cassette 'product/attachments' before(:each) do @product= Reviewed::Product.find('medium-green-charcoal') end it 'returns all attachments' do @product.attachments.length.should > 1 end it 'finds attachments by tag' do attachments = @product.attachments('hero') attachments.length.should == 1 attachments.each do |attachment| attachment.tags.join(',').should match(/hero/i) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reviewed-0.0.2 | spec/product_spec.rb |
reviewed-0.0.1 | spec/product_spec.rb |