Sha256: 79a37293c61860da84c3ce1fc955312ccd983327760a820cb583906057e748cb
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper.rb' module SessionTest module ActiveRecordTrickeryTest class ClassMethodsTest < ActiveSupport::TestCase def test_human_attribute_name assert_equal "Some attribute", UserSession.human_attribute_name("some_attribute") end def test_human_name assert_equal "Usersession", UserSession.human_name end def test_self_and_descendents_from_active_record assert_equal [UserSession], UserSession.self_and_descendents_from_active_record end end class InstanceMethodsTest < ActiveSupport::TestCase def test_new_record session = UserSession.new assert session.new_record? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems