Sha256: 7648d4623e5ffc25ae440ffea1611e84d92928c6382740249085f434d0b6a021
Contents?: true
Size: 972 Bytes
Versions: 44
Compression:
Stored size: 972 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe Event do fixtures :events it "should set_all_day" do event = events(:event_00001) event.all_day = true event.set_all_day event.all_day.should be_true end it "should set all_day and beginning_of_day" do event = events(:event_00008) event.all_day = true event.set_all_day event.start_at.should eq event.end_at.beginning_of_day end end # == Schema Information # # Table name: events # # id :integer not null, primary key # library_id :integer default(1), not null # event_category_id :integer default(1), not null # name :string(255) # note :text # start_at :datetime # end_at :datetime # all_day :boolean default(FALSE), not null # deleted_at :datetime # created_at :datetime # updated_at :datetime # display_name :text #
Version data entries
44 entries across 44 versions & 1 rubygems