Sha256: 74650da00149c3960953ee939bfc636e14ef0072348875ca62e8ce46aaf098f4

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

require "spec_helper"

describe Herder::Attendee do
  it "should setup right name" do
    Herder::Attendee.element_name.should be == "attendee"
  end

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

  it "should inherit Herder::Interactable" do
    Herder::Attendee.new.should be_a(Herder::Interactable)
  end

  it "should have many tickets and emails" do
    Herder::Attendee.associations.map(&:attribute).should =~ [:tickets, :emails]
    Herder::Attendee.associations.map(&:class).uniq.should be == [ReactiveResource::Association::HasManyAssociation]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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