test/acts_as_url/adapter/mongoid.rb in stringex-2.0.1 vs test/acts_as_url/adapter/mongoid.rb in stringex-2.0.2
- old
+ new
@@ -13,22 +13,24 @@
config.connect_to('acts_as_url')
end
class Document
include Mongoid::Document
- field :title, :type => String
- field :other, :type => String
- field :url, :type => String
+ field :title, :type => String
+ field :other, :type => String
+ field :another, :type => String
+ field :url, :type => String
acts_as_url :title
end
class STIBaseDocument
include Mongoid::Document
- field :title, :type => String
- field :other, :type => String
- field :url, :type => String
- field :type, :type => String
+ field :title, :type => String
+ field :other, :type => String
+ field :another, :type => String
+ field :url, :type => String
+ field :type, :type => String
# This gets redefined in the only test that uses it but I want to be uniform
# in setting configuration details in the tests themselves
acts_as_url :title
end