Change test for MacOS::languages.

This commit is contained in:
Markus Reiter 2020-07-22 00:57:33 +02:00
parent abaf9c40ae
commit b2698d501b

View File

@ -5,10 +5,8 @@ require "os/mac"
describe OS::Mac do
describe "::languages" do
specify "all languages can be parsed by Locale::parse" do
subject.languages.each do |language|
expect { Locale.parse(language) }.not_to raise_error
end
it "returns a list of all languages" do
expect(subject.languages).not_to be_empty
end
end
@ -16,10 +14,6 @@ describe OS::Mac do
it "returns the first item from #languages" do
expect(subject.language).to eq(subject.languages.first)
end
it "can be parsed by Locale::parse" do
expect { Locale.parse(subject.language) }.not_to raise_error
end
end
describe "::sdk_path_if_needed" do