spec/index/categorical_index_spec.rb in daru-0.1.4.1 vs spec/index/categorical_index_spec.rb in daru-0.1.5

- old
+ new

@@ -140,15 +140,17 @@ context "single index" do subject { idx.add :c } its(:to_a) { is_expected.to eq [:a, 1, :a, 1, :c] } + its(:categories) { is_expected.to eq [:a, 1, :c] } end context "multiple indexes" do subject { idx.add :c, :d } its(:to_a) { is_expected.to eq [:a, 1, :a, 1, :c, :d] } + its(:categories) { is_expected.to eq [:a, 1, :c, :d] } end end context "#valid?" do let(:idx) { described_class.new [:a, 1, :a, 1] } \ No newline at end of file