Sha256: 4b2060c41a594f1a37c79df94b76e7fcd093494ab741bf381d899a1b9a9aeaa5

Contents?: true

Size: 982 Bytes

Versions: 14

Compression:

Stored size: 982 Bytes

Contents

require 'spec_helper'

describe EventRevision do
  
  before(:each) do
    @valid_attributes = {
      :name => "value for name",
      :event_type => "Meeting",
      :start_on => Time.now,
      :end_on => Time.now,
      :timezone => 'Pacific Time (US & Canada)',
      :location => "value for location",
      :description => "value for description"
    }
    #@event = Event.create!(@valid_attributes)
    #@event.name = 'other value'
    #@event.save
    #@event_revision = @event.find_revision(:previous)
    
    # pending
    #@contact = mock_model(Contact)
    #Contact.stub(:find).and_return([@contact])
  end
  
  it "should have an attendee collection" do
    pending
    #@event_revision.attendees.count.should == 0
  end
  
  it "should instantiate Contacts as attendees" do
    pending
    #Contact.should_receive(:find).and_return([@contact])
    #@event_revision.attendee_roster = "#{@contact.id}"
    #@event_revision.attendees.should == [@contact]
  end  
  
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.15 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.14 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.13 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.11 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.10 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.8 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.7 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.6 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.5 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.4 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.3 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.2 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.1 spec/models/event_revision_spec.rb
event_calendar_engine-0.2.0 spec/models/event_revision_spec.rb