Sha256: e40ba00ff92a546d506de38d435452c5f79dae6294dc93a51f9c7a823c32f2f3

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

require 'test_helper'

describe Casting::Client do
  it 'will not attempt to alter a frozen client' do
    client = TestPerson.new
    client.extend(Casting::Client)
    client.delegate_missing_methods
    
    client.freeze
    
    err = expect{ client.greet }.must_raise(NoMethodError)
    expect(err.message).must_match(/undefined method \`greet'/)    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
casting-1.0.1 test/frozen_client_test.rb