Sha256: a32f9a1c30a756f96e482670b158cc236a0d5928436f01f6fef671b663ee1a32
Contents?: true
Size: 377 Bytes
Versions: 32
Compression:
Stored size: 377 Bytes
Contents
require "rails_helper" describe Array do let(:subject){ [:a, :b, :c] } describe "#reorder" do it "return reordered result for given options from `Array::Reorder` service" do expect(Array::Reorder).to receive(:call).with(array: subject, values: :b, options: :last).and_call_original expect(subject.reorder(:b, :last)).to eq([:a, :c, :b]) end end end
Version data entries
32 entries across 32 versions & 1 rubygems