Sha256: 56800b55d996b5976a93cbc17cd7b29c27ef904cd93b7e5d409c301778014d52
Contents?: true
Size: 881 Bytes
Versions: 1
Compression:
Stored size: 881 Bytes
Contents
# -*- coding: utf-8 -*- require "minitest/autorun" require "simplecov" SimpleCov.start require "sixarm_ruby_sign_out_simple" class SignOutSimpleTest < Minitest::Test include SignOutSimple def initialize(ops) super(ops) @flash={} end # Mock application controller flash hash attr_accessor :flash # Mock application controller method def redirect_to(method) end def test_sign_out assert_nil(@user,'user before sign in') current_user='foo' assert_equal('foo',current_user,'user after sign in') sign_out assert_nil(@user,'user after sign out') end def test_sign_out_success_message s=sign_out_success_message assert_kind_of(String,s) end def test_sign_out_failure_message s=sign_out_failure_message assert_kind_of(String,s) end def current_user @user end def current_user=(user) @user=user end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_sign_out_simple-1.2.0 | test/sixarm_ruby_sign_out_simple_test.rb |