File: translation_test.rb

package info (click to toggle)
redmine 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 27,268 kB
  • ctags: 23,995
  • sloc: ruby: 177,441; sh: 506; perl: 232; sql: 96; makefile: 31
file content (26 lines) | stat: -rw-r--r-- 622 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'abstract_unit'

# class TranslatingController < ActionController::Base
# end

class TranslationControllerTest < Test::Unit::TestCase
  def setup
    @controller = ActionController::Base.new
  end
  
  def test_action_controller_base_responds_to_translate
    assert @controller.respond_to?(:translate)
  end
  
  def test_action_controller_base_responds_to_t
    assert @controller.respond_to?(:t)
  end
  
  def test_action_controller_base_responds_to_localize
    assert @controller.respond_to?(:localize)
  end
  
  def test_action_controller_base_responds_to_l
    assert @controller.respond_to?(:l)
  end
end