Commit 7cc7fdd8a9a8b2cc0e4fe20ec1b4faf1fdb4d7b6
1 parent
94031e9d
Exists in
master
and in
21 other branches
Configure NoBrainer in test mode, removed outdated aliases
Showing
1 changed file
with
2 additions
and
12 deletions
Show diff stats
test/test_helper.rb
@@ -74,19 +74,9 @@ if defined?(Mongoid) | @@ -74,19 +74,9 @@ if defined?(Mongoid) | ||
74 | class Cat < Animal | 74 | class Cat < Animal |
75 | end | 75 | end |
76 | elsif defined?(NoBrainer) | 76 | elsif defined?(NoBrainer) |
77 | - # | ||
78 | - # Aliasing create bang. | ||
79 | - # | ||
80 | - module NoBrainer::Document::Persistance | ||
81 | - extend ActiveSupport::Concern | ||
82 | - | ||
83 | - module ClassMethods | ||
84 | - alias :create! :create | ||
85 | - end | ||
86 | - end | ||
87 | - | ||
88 | NoBrainer.configure do |config| | 77 | NoBrainer.configure do |config| |
89 | - config.rethinkdb_url = 'rethinkdb://localhost/searchkick_test' | 78 | + config.app_name = :searchkick |
79 | + config.environment = :test | ||
90 | end | 80 | end |
91 | 81 | ||
92 | class Product | 82 | class Product |