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.2.0.beta.1 spec/models/basket_spec.rb
enju_leaf-1.1.4 spec/models/basket_spec.rb
enju_leaf-1.1.3 spec/models/basket_spec.rb
enju_leaf-1.1.2 spec/models/basket_spec.rb
enju_leaf-1.1.1 spec/models/basket_spec.rb
enju_leaf-1.1.0 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc22 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc21 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc20 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc19 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc18 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc17 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc16 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc15 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc14 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc13 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc12 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc11 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc10 spec/models/basket_spec.rb
enju_leaf-1.1.0.rc9 spec/models/basket_spec.rb