Sha256: 4988bdef2a12aba664326ccf795fc8b06f469ecb20c4b767c5e5bacbb3f8215b

Contents?: true

Size: 331 Bytes

Versions: 28

Compression:

Stored size: 331 Bytes

Contents

require 'rails_helper'

RSpec.describe ::Dorsale::ExpenseGun::Category, type: :model  do
  it "category factory should be valid?" do
    expect(FactoryGirl.build(:expense_gun_category)).to be_valid
  end

  it "#name should be present" do
    expect(FactoryGirl.build(:expense_gun_category)).to validate_presence_of :name
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
dorsale-3.0.3 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-3.0.2 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-3.0.1 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-3.0.0 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.7.3 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.7.2 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.7.1 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.7.0 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.8 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.7 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.6 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.5 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.4 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.3 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.2 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.1 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.6.0 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.5.0 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.4.3 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.4.2 spec/models/dorsale/expense_gun/category_spec.rb