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

Version Path
highrise-3.2.3 spec/highrise/task_category_spec.rb
highrise-3.2.1 spec/highrise/task_category_spec.rb
highrise-3.1.6 spec/highrise/task_category_spec.rb
highrise-3.1.5 spec/highrise/task_category_spec.rb
highrise-3.1.2 spec/highrise/task_category_spec.rb
highrise-3.1.1 spec/highrise/task_category_spec.rb
highrise-3.1.0 spec/highrise/task_category_spec.rb
highrise-3.1.0.pre spec/highrise/task_category_spec.rb
highrise-3.0.5 spec/highrise/task_category_spec.rb
highrise-3.0.4 spec/highrise/task_category_spec.rb
highrise-3.0.3 spec/highrise/task_category_spec.rb
peterosullivan-highrise-3.0.7 spec/highrise/task_category_spec.rb
peterosullivan-highrise-3.0.6 spec/highrise/task_category_spec.rb
peterosullivan-highrise-3.0.5 spec/highrise/task_category_spec.rb
peterosullivan-highrise-3.0.4 spec/highrise/task_category_spec.rb
peterosullivan-highrise-3.0.3 spec/highrise/task_category_spec.rb
peterosullivan-highrise-3.0.2 spec/highrise/task_category_spec.rb
highrise-3.0.1 spec/highrise/task_category_spec.rb
highrise-3.0.0 spec/highrise/task_category_spec.rb