Sha256: a7a48f221f54d5d368d00523f4887727c16f14110813c8ca0adeba411d6a9c77
Contents?: true
Size: 606 Bytes
Versions: 6
Compression:
Stored size: 606 Bytes
Contents
require "spec_helper" describe "Shoes::Common::Inspect" do let(:test_class) { Class.new { include Shoes::Common::Inspect def self.name "Shoes::InspectableObject" end } } describe "when included" do include InspectHelpers subject(:object) { test_class.new } it "gives a #to_s like (Shoes::Klass)" do expect(object.to_s).to eq("(Shoes::InspectableObject)") end it "gives an #inspect like (Shoes::Klass:0x000049e8)" do expect(object.inspect).to match(/^[(]Shoes::InspectableObject:#{shoes_object_id_pattern}[)]$/) end end end
Version data entries
6 entries across 6 versions & 3 rubygems