Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build on travis

  • Loading branch information...
commit f9783fbef2ed9205ba157bc450e51f42b6a27262 1 parent e248bf8
@durran durran authored
View
2  .travis.yml
@@ -5,3 +5,5 @@ rvm:
- jruby
- rbx-18mode
- ree
+services:
+ - mongodb
View
4 CHANGELOG.md
@@ -3,7 +3,9 @@
For instructions on upgrading to newer versions, visit
[mongoid.org](http://mongoid.org/docs/upgrading.html).
-## 2.5.2 (branch: 2.5.0-stable)
+## 2.5.2
+
+### Resolved Issues
* \#2502 Fixed cache key to properly handle when the document does not
include `Mongoid::Timestamps::Updated`. (Arthur Nogueira Neves)
View
2  lib/mongoid/version.rb
@@ -1,4 +1,4 @@
# encoding: utf-8
module Mongoid #:nodoc
- VERSION = "2.5.1"
+ VERSION = "2.5.2"
end
View
4 spec/app/models/server.rb
@@ -1,6 +1,6 @@
class Server
include Mongoid::Document
- field :name, type: String
+ field :name, :type => String
belongs_to :node
- validates :name, presence: { allow_blank: false }
+ validates :name, :presence => { :allow_blank => false }
end
View
8 spec/functional/mongoid/nested_attributes_spec.rb
@@ -4358,8 +4358,8 @@
end
let(:params) do
- { posts_attributes:
- { "0" => { title: "Testing" }}
+ { :posts_attributes =>
+ { "0" => { :title => "Testing" }}
}
end
@@ -4383,7 +4383,7 @@
end
let!(:server) do
- node.servers.create(name: "test")
+ node.servers.create(:name => "test")
end
before do
@@ -4394,7 +4394,7 @@
let!(:update) do
node.update_attributes({
- servers_attributes: { "0" => { "_id" => server.id, "name" => "" }}
+ :servers_attributes => { "0" => { "_id" => server.id, "name" => "" }}
})
end
Please sign in to comment.
Something went wrong with that request. Please try again.