Sha256: 4512f2c2c5ae10667752a304b29988f75fc07f8cbd72153f603d51dbd1426d60
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
# encoding: utf-8 require File.expand_path("test_helper", File.dirname(__FILE__)) class UrlsOverwritingTest < ActionController::TestCase def teardown ::I18n.locale = ::I18n.default_locale end # test "root" do # assert_generates("/", :controller => "main", :action => "index") # ::I18n.locale = :en # assert_generates("/", :controller => "main", :action => "index") # ::I18n.locale = :ru # assert_generates("/", :controller => "main", :action => "index", :locale => false) # assert_generates("/", :controller => "main", :action => "index", :locale => :en) # assert_generates("/", :controller => "main", :action => "index", :locale => "en") # assert_generates("/ru/", :controller => "main", :action => "index") # end # test "incorrect locale" do # assert_raises Rails::Localization::UnknownLocaleError do # assert_generates("/", :controller => "main", :action => "index", :locale => :de) # end # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-localization-0.2.0 | test/urls_overwriting_test.rb |