def test_should_reset_password
users(:quentin).update_attributes(:password => 'new password',
:password_confirmation => 'new password')
assert_equal users(:quentin), User.authenticate('quentin', 'new password')
end
def test_should_reset_password
users(:quentin).update_attributes(:login => 'quentin',
:password => 'new password', :password_confirmation => 'new password')
assert_equal users(:quentin), User.authenticate('quentin', 'new password')
end
def test_should_reset_password
users(:quentin).update_attributes(:password => 'new password',
:password_confirmation => 'new password')
assert_equal users(:quentin), User.authenticate(users(:quentin).login, 'new password')
end
script = <<-EOS
# ActiveRecord を操作する
@metaelement = Metaelement.new
@metaelement.name = "execute_eval"
@metaelement.save
EOS
Thread.start {
# $SAFE = 4 <- このコメントアウトを外すと SecurityError 例外発生
eval(script)
}.join
script = <<-EOS
@metaelements = Metaelement.find(:all)
EOS
Thread.start {
$SAFE = 4
eval(script)
}.join
script = <<-EOS
Metaelement.connection # DB のコネクションを取得。
EOS
Thread.start {
$SAFE = 4
eval(script)
}.join
チェンジビジョンの決算を迎える訳ですが、JUDE/Professional の有償版販売目標である、6千本を、もう少しで達成します。
1. 2ch へのアクセス禁止で開発効率が大幅に低下
<中略>
2. 人事評価制度の歪みを解消するためにあえて優秀でない人材を採用
<中略>
3. 社内では使われない自社パッケージ
<中略>
4. 競合他社への販売禁止を条件に出されパッケージ販売を断念
<中略>
5. IPAのプロジェクトで間接業務に忙殺される
保守の問題があるから簡単には捨てることはできないかもしれないが、そんな状況なら少なくとも新規の販売は差し止めた方がよいのではないかと思う。自社でも使いたくない製品を買わされる側はたまったものではない。
[code: def test_hoge
@dummy_object = Object.new
@dummy_object.extend(HogeModule)
assert ...hogehoge...
end]
[code: def test_hoge
@new_class = Class.new
@dummy_object = @new_class.allocate
@dummy_object.extend(HogeModule)
assert ...hogehoge...
end]
[code: class Dummy
include HogeModule
end
def test_hoge
@dummy_object = Dummy.new
assert ...hogehoge...
end]