ateam-rspec_merb_helpers 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rspec_merb_helpers.rb +6 -6
  2. metadata +2 -2
@@ -45,7 +45,7 @@ module RSpecMerbHelpers
45
45
  fields.each do |field|
46
46
  it "should have #{field}" do
47
47
  original_object = instance_variable_get(object_name)
48
- object = original_object.class.new(original_object.values.except(field))
48
+ object = original_object.class.new(original_object.values.except(field, original_object.primary_key))
49
49
  object.should_not be_valid
50
50
  end
51
51
  end
@@ -56,7 +56,7 @@ module RSpecMerbHelpers
56
56
  object = instance_variable_get(object_name)
57
57
  freeze_time!
58
58
  object.save
59
- object.created_at.should == Time.now
59
+ object.created_at.to_s.should == Time.now.to_s
60
60
  end
61
61
  end
62
62
 
@@ -66,13 +66,13 @@ module RSpecMerbHelpers
66
66
  freeze_time!
67
67
  created_at = Time.now
68
68
  object.save
69
- object.created_at.should == created_at
70
- object.updated_at.should == created_at
69
+ object.created_at.to_s.should == created_at.to_s
70
+ object.updated_at.to_s.should == created_at.to_s
71
71
 
72
72
  freeze_time!(Time.now + 24.hours)
73
73
  object.save
74
- object.created_at.should == created_at
75
- object.updated_at.should == Time.now
74
+ object.created_at.to_s.should == created_at.to_s
75
+ object.updated_at.to_s.should == Time.now.to_s
76
76
  end
77
77
  end
78
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ateam-rspec_merb_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ateam
@@ -9,7 +9,7 @@ autorequire: name
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-03 00:00:00 -08:00
12
+ date: 2009-05-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15