Sha256: 5ca58d295d7119390f68b7603a3a904c15cd4f80eab0684595fc4bbd3aa07e3a

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

require 'rails_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           :bigint           not null, primary key
#  user_id      :bigint
#  note         :text
#  lock_version :integer          default(0), not null
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_library-0.4.0.rc.1 spec/models/basket_spec.rb