Permalink
Browse files

Making tests run on 1.8

  • Loading branch information...
1 parent e7e49b6 commit ad0bd968bc9279257a4a6d83e122a591ba4acbce @peleteiro committed Apr 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_mongoid.rb
@@ -7,7 +7,7 @@
before do
class MyModel
include Mongoid::Document
- field :duration, type: Duration
+ field :duration, :type => Duration
end
@model = MyModel.new
end
@@ -67,4 +67,4 @@ class MyModel
assert_equal Duration.new(0), @model.duration
end
end
-end
+end

0 comments on commit ad0bd96

Please sign in to comment.