Sha256: 5c1d8f32a450f3ff806b9838cd8ad665b76a43c91dcd8b67c3a53e3c9cce2cea

Contents?: true

Size: 393 Bytes

Versions: 6

Compression:

Stored size: 393 Bytes

Contents

require "spec_helper"
require "hamster/immutable"

describe Hamster::Immutable do
  class Fixture
    include Hamster::Immutable
  end

  [:dup, :clone].each do |method|
    describe "##{method}" do
      before do
        @original = Fixture.new
        @result = @original.send(method)
      end

      it "returns self" do
        @result.should equal(@original)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/hamster-3.0.0/spec/lib/hamster/immutable/copying_spec.rb
hamster-3.0.0 spec/lib/hamster/immutable/copying_spec.rb
hamster-2.0.0 spec/lib/hamster/immutable/copying_spec.rb
hamster-1.0.0 spec/lib/hamster/immutable/copying_spec.rb
hamster-1.0.1.pre.rc3 spec/lib/hamster/immutable/copying_spec.rb
hamster-1.0.1.pre.rc2 spec/hamster/immutable/copying_spec.rb