test/support/mongoid.rb in rails3-jquery-autocomplete-0.6.6 vs test/support/mongoid.rb in rails3-jquery-autocomplete-0.7.0
- old
+ new
@@ -7,14 +7,13 @@
host = "localhost"
config.master = Mongo::Connection.new.db(name)
config.logger = nil
end
- create_models
+ create_models
@controller = ActorsController.new
-
@movie1 = @movie_class.create(:name => 'Alpha')
@movie2 = @movie_class.create(:name => 'Alspha')
@movie3 = @movie_class.create(:name => 'Alzpha')
end
@@ -34,10 +33,10 @@
end
end
end
def destroy_models
- Object.send(:remove_const, :Movie)
+ Object.send(:remove_const, :Movie)
end
end
end
end