blob: 94c672d3d5b78d879bfef103a3a8eb6045369624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative 'shared/inspect'
describe "Struct#to_s" do
it "is a synonym for inspect" do
car = StructClasses::Car.new('Ford', 'Ranger')
car.inspect.should == car.to_s
end
it_behaves_like :struct_inspect, :to_s
end
|