Sha256: e18dbec22faf4a82261451e9ed7520bcb057bd8f0eb14729f852e0b1878787ea

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

require 'helper'
require 'cassanity/result_transformers/result_to_array'

describe Cassanity::ResultTransformers::ResultToArray do
  let(:result_array) {
    [{one: 1}, {two: 2}, {three: 3}]
  }

  describe "#call" do
    it "returns a copy of the array" do
      subject.call(result_array).should eq(result_array)
      subject.call(result_array).should_not equal(result_array)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cassanity-0.6.0 spec/unit/cassanity/result_transformers/result_to_array_spec.rb
cassanity-0.6.0.beta5 spec/unit/cassanity/result_transformers/result_to_array_spec.rb
cassanity-0.6.0.beta4 spec/unit/cassanity/result_transformers/result_to_array_spec.rb
cassanity-0.6.0.beta3 spec/unit/cassanity/result_transformers/result_to_array_spec.rb
cassanity-0.6.0.beta2 spec/unit/cassanity/result_transformers/result_to_array_spec.rb
cassanity-0.6.0.beta1 spec/unit/cassanity/result_transformers/result_to_array_spec.rb