Sha256: 968cf26b06f6d2542f2743564247fe86d5d11f57a21a981ce3afc2d092f58e01

Contents?: true

Size: 371 Bytes

Versions: 7

Compression:

Stored size: 371 Bytes

Contents

require 'spec/spec_helper'

describe ShopPayment do
  
  dataset :shop_orders, :shop_payments

  describe 'relationships' do
    context 'order' do
      before :each do
        @order = shop_orders(:several_items)
      end
      it 'should belong to one' do
        @payment = shop_payments(:visa)
        @payment.order.should === @order
      end
    end
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
radiant-shop-extension-0.90.0 spec/models/shop_payment_spec.rb
radiant-shop-extension-0.11.6 spec/models/shop_payment_spec.rb
radiant-shop-extension-0.11.5 spec/models/shop_payment_spec.rb
radiant-shop-extension-0.11.4 spec/models/shop_payment_spec.rb
radiant-shop-extension-0.11.3 spec/models/shop_payment_spec.rb
radiant-shop-extension-0.11.1 spec/models/shop_payment_spec.rb
radiant-shop-extension-0.11.0 spec/models/shop_payment_spec.rb