Sha256: 35182a8aa7a156b34ac06775e9d0d70f8143fa3c3a8424aeea14d6fc48a5aa90

Contents?: true

Size: 562 Bytes

Versions: 24

Compression:

Stored size: 562 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe Basket do
  #pending "add some examples to (or delete) #{__FILE__}"
  fixtures :all

  it "should not create basket when user is not active" do
    Basket.create(:user => users(:user4)).id.should be_nil
  end
end

# == Schema Information
#
# Table name: baskets
#
#  id           :integer         not null, primary key
#  user_id      :integer
#  note         :text
#  type         :string(255)
#  lock_version :integer         default(0), not null
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
enju_circulation-0.0.34 spec/models/basket_spec.rb
enju_circulation-0.0.33 spec/models/basket_spec.rb
enju_circulation-0.0.32 spec/models/basket_spec.rb
enju_circulation-0.0.31 spec/models/basket_spec.rb
enju_circulation-0.0.30 spec/models/basket_spec.rb
enju_circulation-0.0.29 spec/models/basket_spec.rb
enju_circulation-0.0.28 spec/models/basket_spec.rb
enju_circulation-0.0.27 spec/models/basket_spec.rb
enju_circulation-0.0.26 spec/models/basket_spec.rb
enju_circulation-0.0.25 spec/models/basket_spec.rb
enju_circulation-0.0.24 spec/models/basket_spec.rb
enju_circulation-0.0.23 spec/models/basket_spec.rb
enju_circulation-0.0.22 spec/models/basket_spec.rb
enju_circulation-0.0.21 spec/models/basket_spec.rb
enju_circulation-0.0.20 spec/models/basket_spec.rb
enju_circulation-0.0.19 spec/models/basket_spec.rb
enju_circulation-0.0.18 spec/models/basket_spec.rb
enju_circulation-0.0.17 spec/models/basket_spec.rb
enju_circulation-0.0.16 spec/models/basket_spec.rb
enju_circulation-0.0.15 spec/models/basket_spec.rb