Sha256: f7944ee16fe0a2680d4fdf16b9e38401cb9fcdd6631f916554b54ef3a172ee4d

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

require 'spec_helper'

describe BookPurchase do
  subject(:book_purchase) { FactoryGirl.create(:book_purchase) }

  describe '#user' do
    subject { book_purchase.user }

    it { should be_kind_of(User) }
  end

  describe '#book' do
    subject { book_purchase.book }

    it { should be_kind_of(Book) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dicer-0.3.0 examples/rails-3.2/spec/models/book_purchase_spec.rb
dicer-0.2.0 examples/rails-3.2/spec/models/book_purchase_spec.rb
dicer-0.1.0 examples/rails-3.2/spec/models/book_purchase_spec.rb
dicer-0.0.1 examples/rails-3.2/spec/models/book_purchase_spec.rb