Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Refactors test
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Jul 13, 2013
1 parent 3efaa3e commit 7fe1404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/fuzzily/searchable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def Stuff.name ; 'Stuff' ; end

it 'creates all trigrams' do
subject.create(:name => 'Paris')
old_ids = Trigram.all.map(&:id)
Trigram.delete_all
subject.bulk_update_fuzzy_name
(old_ids & Trigram.all.map(&:id)).should be_empty
Trigram.all.should_not be_empty
end
end

Expand Down

0 comments on commit 7fe1404

Please sign in to comment.