Sha256: 1a51ac4117c21b41a4816eade899144e2899dd8f37b87c7e72a0a33cdb0ab875
Contents?: true
Size: 482 Bytes
Versions: 19
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' describe Highrise::TaskCategory do subject { Highrise::TaskCategory.new(:id => 1, :name => "Task Category") } it { should be_a_kind_of Highrise::Base } it ".find_by_name" do task_category = Highrise::TaskCategory.new(:id => 2, :name => "Another Task Category") Highrise::TaskCategory.should_receive(:find).with(:all).and_return([task_category, subject]) Highrise::TaskCategory.find_by_name("Task Category").should == subject end end
Version data entries
19 entries across 19 versions & 2 rubygems