File: translation_test.rb

package info (click to toggle)
rails 2.3.5-1.2%2Bsqueeze8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 18,248 kB
  • ctags: 20,944
  • sloc: ruby: 122,413; makefile: 72; sql: 43; sh: 1
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