~ubuntu-branches/ubuntu/utopic/ruby-i18n/utopic

« back to all changes in this revision

Viewing changes to test/backend/exceptions_test.rb

  • Committer: Package Import Robot
  • Author(s): Jonas Genannt
  • Date: 2013-11-27 19:26:54 UTC
  • mfrom: (1.2.1)
  • Revision ID: package-import@ubuntu.com-20131127192654-os6l0hnvpixj8309
Tags: 0.6.5-1
* Team upload.
* New Upstream Release
* d/control:
  - bumped standards version
  - changed ruby1.8 dependency to ruby
  - wrap-sort
* removed patches
  - rubygems is loaded per default
  - test works, no need to skip
* patch strip_bundler refreshed, moved to extra file

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    end
28
28
    assert_equal "translation missing: en.time.formats.foo", exception.message
29
29
  end
 
30
 
 
31
  test "exceptions: MissingInterpolationArgument message includes missing key, provided keys and full string" do
 
32
    exception = I18n::MissingInterpolationArgument.new('key', {:this => 'was given'}, 'string')
 
33
    assert_equal 'missing interpolation argument "key" in "string" ({:this=>"was given"} given)', exception.message
 
34
  end
30
35
end