spec/lib/query/indexes_spec.rb in picky-2.7.0 vs spec/lib/query/indexes_spec.rb in picky-3.0.0.pre1
- old
+ new
@@ -1,16 +1,21 @@
require 'spec_helper'
-describe Query::Indexes do
+describe Picky::Query::Indexes do
3.times do |i|
n = i + 1
name = :"index#{n}"
indexed = :"indexed#{n}"
let(name) { stub name, :internal_indexed => stub(indexed) }
end
- let(:indexes) { described_class.new index1, index2, index3 }
+ let(:indexes) do
+ indexes = described_class.allocate
+ indexes.stub! :map_categories
+ indexes.send :initialize, index1, index2, index3
+ indexes
+ end
describe 'expand_combinations_from' do
it 'generates all possible combinations from the given ones' do
combinations = [[1,2,3], [:a, :b, :c], [:k, :l]]
\ No newline at end of file