spec/ziptz_spec.rb in ziptz-1.0.19 vs spec/ziptz_spec.rb in ziptz-1.0.20
- old
+ new
@@ -1,7 +1,15 @@
require 'spec_helper'
describe Ziptz do
+ describe 'when inspected' do
+ let(:ziptz) { Ziptz.new }
+
+ it 'does not show internal instance variables' do
+ expect(ziptz.inspect).to match /#<Ziptz:\d+>/
+ end
+ end
+
describe '#time_zone_name' do
let(:ziptz) { Ziptz.new }
context 'when given a 5-digit zipcode' do
it 'returns the time zone number' do