spec/fuzzily/model_spec.rb in fuzzily-0.0.3 vs spec/fuzzily/model_spec.rb in fuzzily-0.1.0
- old
+ new
@@ -2,9 +2,11 @@
describe Fuzzily::Model do
subject do
Class.new(ActiveRecord::Base).tap do |model|
model.table_name = :trigrams
+
+ def model.name ; 'MyModel' ; end
end
end
before(:each) { prepare_trigrams_table }