aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-12-26 14:38:29 +0100
committerAlban Peignier2017-12-26 14:38:29 +0100
commitebc344c1633e87d35f442ca6df783b2b1efe9ce7 (patch)
treea7bfd7e88f1047f3c53e47dd707cd6e60854ca13
parent69ed6ec8ba929e9b0adff11b7141daa8a2d79222 (diff)
downloadchouette-core-ebc344c1633e87d35f442ca6df783b2b1efe9ce7.tar.bz2
Don't use i18n into Chouette::AreaType specs. Refs #5311
-rw-r--r--spec/models/chouette/area_type_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/models/chouette/area_type_spec.rb b/spec/models/chouette/area_type_spec.rb
index fc6720298..82c3f96bc 100644
--- a/spec/models/chouette/area_type_spec.rb
+++ b/spec/models/chouette/area_type_spec.rb
@@ -25,7 +25,12 @@ RSpec.describe Chouette::AreaType do
it "returns an array with label and code for each type" do
allow(Chouette::AreaType).to receive(:all).and_return(%i{zdep lda})
- expect(Chouette::AreaType.options).to eq([["ZDEp", :zdep], ["LDA", :lda]])
+
+ expected_options = [
+ [Chouette::AreaType.find('zdep').label, :zdep],
+ [Chouette::AreaType.find('lda').label, :lda]
+ ]
+ expect(Chouette::AreaType.options).to eq(expected_options)
end
end