Sha256: d9609fe7d337ac43d3049714723821d786d25a44a986b36f495151723df56adc

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Adamantium::Mutable, '#freeze' do
  subject { object.freeze }

  let(:object) { class_under_test.new }

  let(:class_under_test) do
    Class.new do
      include Adamantium::Mutable
    end
  end

  it_should_behave_like 'a command method'

  it 'keeps object mutable' do
    subject
    object.instance_variable_set(:@foo, :bar)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adamantium-0.2.0 spec/unit/adamantium/mutable/freeze_spec.rb
adamantium-0.1.0 spec/unit/adamantium/mutable/freeze_spec.rb