Sha256: bdf66f679b745f6e55947d7145ca343ca121483fc2b9241e19a2407a4d192cc3

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

require 'test_helper'

describe Casting::Null do
  it 'will answer to any method with nil' do
    client = TestPerson.new
    client.extend(Casting::Client)
    attendant = Casting::Null

    assert_nil client.delegate('greet', attendant)
  end
end

describe Casting::Blank do
  it 'will answer to any method with an empty string' do
    client = TestPerson.new
    client.extend(Casting::Client)
    attendant = Casting::Blank

    assert_empty client.delegate('greet', attendant)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
casting-0.7.0 test/null_module_test.rb