aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-08-12 10:58:04 +0200
committerDavid Cabo <david@calibea.com>2011-08-12 10:58:04 +0200
commitaf4d10fa5d98112c0d841d2dbea639147b3992d6 (patch)
tree828f89702d0ce6634ad6b4ae2c26fb49614696e8
parent6518a26325c80ce167b09a58e6074f1626618c92 (diff)
make CSV import test deterministic by sorting results
-rw-r--r--spec/models/public_body_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index 83075e4af..ec84cbe65 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -276,7 +276,7 @@ describe PublicBody, " when loading CSV files" do
# the way categories are loaded every time from the PublicBody class. For now we just
# test some translation was done.
body = PublicBody.find_by_name('North West Fake Authority')
- body.translated_locales.should == [:en, :es]
+ body.translated_locales.map{|l|l.to_s}.sort.should == ["en", "es"]
end
it "should not fail if a locale is not found in the input file" do