spec/subdivision_spec.rb in countries-4.2.3 vs spec/subdivision_spec.rb in countries-5.0.0
- old
+ new
@@ -1,6 +1,6 @@
-# coding: utf-8
+# frozen_string_literal: true
require 'spec_helper'
describe ISO3166::Subdivision do
before do
@@ -21,12 +21,14 @@
end
describe 'state codes' do
it 'should all be strings' do
countries.each do |country|
- expect(country.subdivisions.keys).to all(be_a(String)), \
- "Expected #{country.alpha2.inspect} to have string subdivision" \
- "codes but had #{country.subdivisions.keys.inspect}"
+ expect(country.subdivisions.keys).to(
+ all(be_a(String)),
+ "Expected #{country.alpha2.inspect} to have string subdivision \
+ codes but had #{country.subdivisions.keys.inspect}"
+ )
end
end
end
end