require 'google_timezone/result' describe GoogleTimezone::Result do it 'should be success' do result = GoogleTimezone::Result.new({ 'status' => 'OK' }) expect(result).to be_success end it 'should not be succsess' do result = GoogleTimezone::Result.new({ 'status' => 'ZERO_RESULTS' }) expect(result).to_not be_success end end