Sha256: 296cbeae62dd8df743f8984bd9102145f3a9fc1383c5ad2e29980c49a8717c04

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe Bogus::UndefinedReturnValue do
  let(:interaction) { Bogus::Interaction.new(:foo, ["bar"]) }
  let(:undefined_return_value) { Bogus::UndefinedReturnValue.new(interaction) }

  it "includes the interaction when stringified" do
    undefined_return_value.to_s.should include('foo("bar")')
  end

  it "includes interaction in the error message unknown method called" do
    begin
      undefined_return_value.foobar
    rescue => e
      e.message.should include('foo("bar")')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bogus-0.1.4 spec/bogus/stubbing/undefined_return_value_spec.rb