spec/fixtures/models.rb in by_star-0.9.0 vs spec/fixtures/models.rb in by_star-1.0.0

- old
+ new

@@ -11,11 +11,11 @@ has_and_belongs_to_many :posts end class Event < ActiveRecord::Base by_star_field :start_time - named_scope :secret, :conditions => { :public => false } + scope :secret, :conditions => { :public => false } end class Invoice < ActiveRecord::Base has_many :day_entries def self.factory(value, created_at = nil) @@ -99,6 +99,6 @@ # For by_weekend test Event.create(:name => "1st of August", :start_time => "01-08-#{Time.zone.now.year}".to_time) Event.create(:name => "FBI meeting", :start_time => "02-03-#{Time.zone.now.year}".to_time, :public => false) -Invoice.first.day_entries.create(:spent_at => Time.zone.now + 1.hour, :name => "Working harder, better, faster stronger.") +# Invoice.first.day_entries.create(:spent_at => Time.zone.now + 1.hour, :name => "Working harder, better, faster stronger.") \ No newline at end of file