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