Sha256: 5732208ea56266c27363776e4453aa2f9ae8afc5f9349ae63343c31eae378880

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

require "spec_helper"

describe Herder::Email do
  it "should setup right name" do
    Herder::Email.element_name.should be == "email"
  end

  it "should inherit Herder::Model" do
    Herder::Email.new.should be_a(Herder::Model)
  end

  it "should belong to an attendee" do
    Herder::Email.associations.map(&:attribute).should =~ [:attendee]
    Herder::Email.associations.map(&:class).should be == [ReactiveResource::Association::BelongsToAssociation]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
herder-0.0.5 spec/herder/email_spec.rb
herder-0.0.4 spec/herder/email_spec.rb