Sha256: b9394ada1bce0abade04c4f86f4cc990d64e3331269a39a6a450d9c36554dc91

Contents?: true

Size: 360 Bytes

Versions: 9

Compression:

Stored size: 360 Bytes

Contents

require 'spec/spec_helper'

describe ShopCategory do
  
  dataset :shop_categories
  
  before :each do
    @category = shop_categories(:bread)
  end
  
  it 'should have many discountables' do
    @category.discountables.is_a?(Array).should be_true
  end
  
  it 'should have many discounts' do
    @category.discounts.is_a?(Array).should be_true
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-shop_discounts-extension-0.0.11 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.10 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.9 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.8 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.7 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.6 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.4 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.3 spec/models/shop_category_spec.rb
radiant-shop_discounts-extension-0.0.1 spec/models/shop_category_spec.rb