Sha256: 520c0ba2b68358743461b08b1ef61acf41733058261c99a34a6f3bd6341c13e9

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

require "spec_helper"

describe Herder::Ticket do
  it "should setup right name" do
    Herder::Ticket.element_name.should be == "ticket"
  end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
herder-0.0.2 spec/herder/ticket_spec.rb