Sha256: 5fefe560b86b43bc9ffe4e0a5666e580c974cc7108c0deb2dcf184720fe38a27
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
require 'spec_helper' describe Highrise::SubjectData do it { should be_a_kind_of Highrise::Base } it "Two different subject datas with different values are not equal" do martini = Highrise::SubjectData.new({:id => 1, :value => "Martini", :subject_field_id => 3, :subject_field_label => "Cocktail"}) sling = Highrise::SubjectData.new({:id => 2, :value => "Singapore Sling", :subject_field_id => 4, :subject_field_label => "Cocktail"}) martini.should_not==sling end it "Two different subject datas with different labels are not equal" do martini = Highrise::SubjectData.new({:id => 1, :value => "Martini", :subject_field_id => 3, :subject_field_label => "Cocktail"}) sling = Highrise::SubjectData.new({:id => 2, :value => "Martini", :subject_field_id => 4, :subject_field_label => "Vermouth Brands"}) martini.should_not==sling end it "Two the same subject datas are equal" do martini = Highrise::SubjectData.new({:id => 1, :value => "Martini", :subject_field_id => 3, :subject_field_label => "Cocktail"}) another_martini = Highrise::SubjectData.new({:id => 2, :value => "Martini", :subject_field_id => 4, :subject_field_label => "Cocktail"}) martini.should==another_martini end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
highrise-3.2.3 | spec/highrise/subject_data_spec.rb |
highrise-3.2.1 | spec/highrise/subject_data_spec.rb |