Project

General

Profile

« Previous | Next » 

Revision 3ff2bba4

Added by Dmitri Dolguikh almost 10 years ago

fixes #5708: #nil? is now an allowed method inside of Host and Token jails

View differences:

test/unit/token_test.rb
assert_equal 1, Token.count
end
test "token jail test" do
allowed = [:host, :value, :expires, :nil?]
allowed.each do |m|
assert Token::Jail.allowed?(m), "Method #{m} is not available in Token::Jail while should be allowed."
end
end
end

Also available in: Unified diff