Sha256: 833e912d50f17208b1fb884faa6de26c5f58c04da4f9936e5e57d061c747f709

Contents?: true

Size: 511 Bytes

Versions: 30

Compression:

Stored size: 511 Bytes

Contents

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

describe Basket do
  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
#  lock_version :integer          default(0), not null
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc8 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc7 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc6 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc5 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc4 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc3 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc2 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc1 spec/models/basket_spec.rb
enju_leaf-1.1.0.beta3 spec/models/basket_spec.rb
enju_leaf-1.1.0.pre3 spec/models/basket_spec.rb