Sha256: 6ed9a76b93cc748b113dc60cdf458cc76024a96e76ae659e02ef65a6f00a445e

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

require_relative "../rails_helper"
require "shoulda/matchers"

describe ExpenseGun::Category do
  it "category factory should be valid?" do
    expect(FactoryGirl.build(:category)).to be_valid
  end
  
  it "#name should be present" do
    expect(FactoryGirl.build(:category)).to validate_presence_of :name
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
expense_gun-1.0.3 spec/models/category_spec.rb
expense_gun-1.0.2 spec/models/category_spec.rb
expense_gun-1.0.1 spec/models/category_spec.rb
expense_gun-1.0.0 spec/models/category_spec.rb