Sha256: 2d8775736bc843bdc29518b7f939460de30f33f9edbe81cad1a9c10c46331b5a

Contents?: true

Size: 539 Bytes

Versions: 37

Compression:

Stored size: 539 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 = Basket.new
    basket.user = users(:user4)
    basket.should_not be_valid
  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

37 entries across 37 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre43 spec/models/basket_spec.rb
enju_library-0.1.0.pre42 spec/models/basket_spec.rb
enju_library-0.1.0.pre41 spec/models/basket_spec.rb
enju_library-0.1.0.pre40 spec/models/basket_spec.rb
enju_library-0.1.0.pre39 spec/models/basket_spec.rb
enju_library-0.1.0.pre38 spec/models/basket_spec.rb
enju_library-0.1.0.pre37 spec/models/basket_spec.rb
enju_library-0.1.0.pre36 spec/models/basket_spec.rb
enju_library-0.1.0.pre35 spec/models/basket_spec.rb
enju_library-0.1.0.pre34 spec/models/basket_spec.rb
enju_library-0.1.0.pre33 spec/models/basket_spec.rb
enju_library-0.1.0.pre32 spec/models/basket_spec.rb
enju_library-0.1.0.pre31 spec/models/basket_spec.rb
enju_library-0.1.0.pre30 spec/models/basket_spec.rb
enju_library-0.1.0.pre29 spec/models/basket_spec.rb
enju_library-0.1.0.pre28 spec/models/basket_spec.rb
enju_library-0.1.0.pre27 spec/models/basket_spec.rb
enju_library-0.1.0.pre26 spec/models/basket_spec.rb
enju_library-0.1.0.pre25 spec/models/basket_spec.rb
enju_library-0.1.0.pre24 spec/models/basket_spec.rb