Sha256: 6188fb8109296fca9397a07b9273e63b4dcf14a0423a18f44f5a71ea3742c0bc
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 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 inherit Herder::Interactable" do Herder::Ticket.new.should be_a(Herder::Interactable) end it "should belong to an attendee" do Herder::Ticket.associations.map(&:attribute).should =~ [:attendee, :event] Herder::Ticket.associations.map(&:class).should be == [ReactiveResource::Association::BelongsToAssociation, ReactiveResource::Association::BelongsToAssociation] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
herder-0.0.5 | spec/herder/ticket_spec.rb |
herder-0.0.4 | spec/herder/ticket_spec.rb |