Sha256: 8b5b2dd593fe037da421b20296142fbbeb2064d4feeb5562218716031b1f5f12

Contents?: true

Size: 464 Bytes

Versions: 16

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe Category do
  it "can be instantiated" do
    Category.new.should be_an_instance_of(Category)
  end

  it "can be saved successfully" do
    Category.create.should be_persisted
  end
  
  it "can be found by iid" do
    Category.create(:internal_identifier => 'my_category')
    category = Category.iid('my_category')
    category.should be_an_instance_of(Category)
    category.internal_identifier.should == 'my_category'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.2.0 spec/models/category_spec.rb
erp_base_erp_svcs-4.0.0 spec/models/category_spec.rb
erp_base_erp_svcs-3.1.5 spec/models/category_spec.rb
erp_base_erp_svcs-3.1.4 spec/models/category_spec.rb
erp_base_erp_svcs-3.1.3 spec/models/category_spec.rb
erp_base_erp_svcs-3.1.2 spec/models/category_spec.rb
erp_base_erp_svcs-3.1.1 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.7 spec/models/category_spec.rb
erp_base_erp_svcs-3.1.0 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.6 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.5 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.4 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.3 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.2 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.1 spec/models/category_spec.rb
erp_base_erp_svcs-3.0.0 spec/models/category_spec.rb