Sha256: 3aae79f49357f3a16d1743b62e57f014f4b4d4ee3438fd1414839da85828414b
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
require "spec_helper" describe Herder::Event do it "should setup right name" do Herder::Event.element_name.should be == "event" end it "should inherit Herder::Model" do Herder::Event.new.should be_a(Herder::Model) end it "should inherit Herder::Interactable" do Herder::Event.new.should be_a(Herder::Interactable) end it "should belong to an attendee" do Herder::Event.associations.map(&:attribute).should =~ [:tickets, :venue] Herder::Event.associations.map(&:class).should be == [ReactiveResource::Association::HasManyAssociation, ReactiveResource::Association::BelongsToAssociation] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
herder-0.0.5 | spec/herder/event_spec.rb |
herder-0.0.4 | spec/herder/event_spec.rb |