Sha256: 1dc07f612e96f6b6fb191b02ebbd393887285c74bf95db2580b3d8aaa2606e53
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 Bytes
Contents
require 'spec_helper' module Trajectory describe MissingAttributeError do it 'is able to display an error message when given attribute is nil in given object' do object = Object.new MissingAttributeError.new(object, :some_nil_attribute).to_s.should == "Attribute #{:some_nil_attribute} of #{object.inspect} is nil." end end end
Version data entries
3 entries across 3 versions & 1 rubygems