Sha256: bb407a9fa079332b6f6b1da2009bbc597615d9f332da383bfb07bc5e01bbe1f3
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 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 expect(undefined_return_value.to_s).to include('foo("bar")') end it "includes interaction in the error message unknown method called" do begin undefined_return_value.foobar rescue => e expect(e.message).to include('foo("bar")') end end end
Version data entries
3 entries across 3 versions & 1 rubygems