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-2.4.1 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.4.0 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.3.5 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.3.4 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.3.3 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.3.2 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.3.1 spec/models/dorsale/expense_gun/category_spec.rb
dorsale-2.3.0 spec/models/dorsale/expense_gun/category_spec.rb