Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
✂️
[ci skip]
  • Loading branch information
rafaelfranca committed Dec 2, 2013
1 parent 81abcb7 commit 016eb65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions activesupport/test/message_verifier_test.rb
Expand Up @@ -11,7 +11,7 @@
require 'active_support/json'

class MessageVerifierTest < ActiveSupport::TestCase

class JSONSerializer
def dump(value)
ActiveSupport::JSON.encode(value)
Expand All @@ -21,7 +21,7 @@ def load(value)
ActiveSupport::JSON.decode(value)
end
end

def setup
@verifier = ActiveSupport::MessageVerifier.new("Hey, I'm a secret!")
@data = { :some => "data", :now => Time.local(2010) }
Expand All @@ -43,7 +43,7 @@ def test_tampered_data_raises
assert_not_verified("#{data}--#{hash.reverse}")
assert_not_verified("purejunk")
end

def test_alternative_serialization_method
prev = ActiveSupport.use_standard_json_time_format
ActiveSupport.use_standard_json_time_format = true
Expand All @@ -54,7 +54,7 @@ def test_alternative_serialization_method
ensure
ActiveSupport.use_standard_json_time_format = prev
end

def assert_not_verified(message)
assert_raise(ActiveSupport::MessageVerifier::InvalidSignature) do
@verifier.verify(message)
Expand Down
2 changes: 1 addition & 1 deletion guides/source/configuring.md
Expand Up @@ -775,7 +775,7 @@ error similar to given below will be thrown.
ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5 seconds. The max pool size is currently 5; consider increasing it:
```

If you get the above error, you might want to increase the size of connection
If you get the above error, you might want to increase the size of connection
pool by incrementing the `pool` option in `database.yml`

NOTE. If you have enabled `Rails.threadsafe!` mode then there could be a chance that several threads may be accessing multiple connections simultaneously. So depending on your current request load, you could very well have multiple threads contending for a limited amount of connections.

0 comments on commit 016eb65

Please sign in to comment.