test/factory.rb in has_emails-0.3.0 vs test/factory.rb in has_emails-0.3.1
- old
+ new
@@ -35,10 +35,11 @@
build Email do |attributes|
attributes[:sender] = create_user unless attributes.include?(:sender)
attributes.reverse_merge!(
:subject => 'New features',
- :body => 'Lots of new things to talk about... come to the meeting tonight to find out!'
+ :body => 'Lots of new things to talk about... come to the meeting tonight to find out!',
+ :created_at => Time.current + Email.count
)
end
build EmailAddress do |attributes|
attributes.reverse_merge!(