spec/models/journey/resource/where_multiple_spec.rb in embark-journey-0.1.1 vs spec/models/journey/resource/where_multiple_spec.rb in embark-journey-0.1.3

- old
+ new

@@ -3,18 +3,13 @@ describe Journey::Resource::WhereMultiple do let(:klass) do Class.new(Journey::Resource) do self.element_name = 'job' - - def self.destroy_all - all.each(&:destroy) - end end end - - before { klass.destroy_all } + before { klass.all.each(&:destroy) } let!(:candidates) { matchables + unmatchables } let(:collection) { klass.where_multiple(clauses) } let(:count) { klass.count_multiple(clauses) }