Convert specs to RSpec 2.14.8 syntax and fix broken array equality check in rest_index_spec

This conversion is done by Transpec 1.13.1 with the following command:
    transpec

* 935 conversions
    from: obj.should
      to: expect(obj).to

* 597 conversions
    from: == expected
      to: eq(expected)

* 188 conversions
    from: obj.should_receive(:message)
      to: expect(obj).to receive(:message)

* 159 conversions
    from: obj.should_not
      to: expect(obj).not_to

* 48 conversions
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

* 19 conversions
    from: its(:attr) { }
      to: describe '#attr' do subject { super().attr }; it { } end

* 6 conversions
    from: obj.should_not_receive(:message)
      to: expect(obj).not_to receive(:message)

* 2 conversions
    from: =~ [1, 2]
      to: match_array([1, 2])

* 1 conversion
    from: > expected
      to: be > expected