Sha256: 132508a2059aadea269aa3e0b0d70c2c74cd0f8c67d3229dbdf6ef27c02e34bf
Contents?: true
Size: 298 Bytes
Versions: 4
Compression:
Stored size: 298 Bytes
Contents
require "spec_helper" require "hamster/immutable" describe Hamster::Immutable do class NewPerson < Struct.new(:first, :last) include Hamster::Immutable end let(:immutable) { NewPerson.new("Simon", "Harris") } it "freezes the instance" do expect(immutable).to be_frozen end end
Version data entries
4 entries across 4 versions & 1 rubygems