Sha256: 28391d1d0a670b43704cae2ef58644972289009e6bc8c2133b465e1f66836926

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Highrise::Tag do

  before(:each) do
    Highrise::Base.site = 'http://example.com.i/'
    @tag = Highrise::Tag.new
  end
  
  it "should be instance of Highrise::Base" do
    @tag.kind_of?(Highrise::Base).should be_true
  end

  it "should support equality" do
    @tag.id = 1
    @tag.name = "Name"
    
    tag = Highrise::Tag.new(:id => 1, :name => "Name")
    @tag.should == tag
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
kmayer-highrise-0.7.0 spec/highrise/tag_spec.rb
kmayer-highrise-0.7.1 spec/highrise/tag_spec.rb
tapajos-highrise-0.8.0 spec/highrise/tag_spec.rb