diff --git a/Gemfile.lock b/Gemfile.lock index e2d3cd7e..a874dbcc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -40,7 +40,7 @@ GEM rspec-expectations (>= 2.7.0) bcrypt (3.1.7) builder (3.2.2) - bullet (4.12.0) + bullet (4.13.1) activesupport (>= 3.0.0) uniform_notifier (>= 1.6.0) cache_digests (0.3.1) @@ -54,7 +54,7 @@ GEM xpath (~> 2.0) childprocess (0.5.3) ffi (~> 1.0, >= 1.0.11) - codeclimate-test-reporter (0.3.0) + codeclimate-test-reporter (0.4.0) simplecov (>= 0.7.1, < 1.0.0) coffee-rails (4.0.1) coffee-script (>= 2.2.0) @@ -63,8 +63,8 @@ GEM coffee-script-source execjs coffee-script-source (1.7.1) - crass (0.2.0) - cucumber (1.3.15) + crass (0.2.1) + cucumber (1.3.16) builder (>= 2.1.2) diff-lcs (>= 1.1.3) gherkin (~> 2.12) @@ -109,13 +109,13 @@ GEM multi_json (1.10.1) multi_test (0.1.1) mysql2 (0.3.16) - nokogiri (1.6.2.1) + nokogiri (1.6.3.1) mini_portile (= 0.6.0) nokogumbo (1.1.9) nokogiri polyglot (0.3.5) rack (1.5.2) - rack-dev-mark (0.6.4) + rack-dev-mark (0.7.1) rack (>= 1.1) rack-mini-profiler (0.9.2) rack (>= 1.1.3) @@ -140,10 +140,10 @@ GEM thor (>= 0.18.1, < 2.0) rake (10.3.2) ref (1.0.5) - rspec-expectations (3.0.2) + rspec-expectations (3.0.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.0.0) - rspec-support (3.0.2) + rspec-support (3.0.3) rubyzip (1.1.6) safe_yaml (1.0.3) sanitize (3.0.0) @@ -196,7 +196,7 @@ GEM polyglot (>= 0.3.1) tzinfo (1.2.1) thread_safe (~> 0.1) - uglifier (2.5.1) + uglifier (2.5.3) execjs (>= 0.3.0) json (>= 1.8.0) uniform_notifier (1.6.2) diff --git a/test/models/pie_chart_data_test.rb b/test/models/pie_chart_data_test.rb index eafe8711..e50c8db0 100644 --- a/test/models/pie_chart_data_test.rb +++ b/test/models/pie_chart_data_test.rb @@ -4,12 +4,6 @@ require 'active_support/core_ext/string' class Stats::PieChartDataTest < Minitest::Test - def setup - xx = { :stats => { :other_actions_label => '(other)' } } - I18n.backend.store_translations(:xx, xx) - I18n.locale = :xx - end - def test_with_0_items data = Stats::PieChartData.new([], 'a chart', 50) @@ -77,7 +71,7 @@ class Stats::PieChartDataTest < Minitest::Test data = Stats::PieChartData.new(items, 'a chart', 50) assert_equal [9, 3, 6, 11, 16, 14, 4, 0, 5, 27], data.values - assert_equal ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "(other)"], data.labels + assert_equal ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "(others)"], data.labels assert_equal [1, 2, 3, 4, 5, 6, 7, 8, 9, -1], data.ids end