We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9aaa2 commit 063b7f7Copy full SHA for 063b7f7
test/models/lang_test.rb
@@ -2,8 +2,8 @@
2
3
class LangTest < ActiveSupport::TestCase
4
setup do
5
- $redis.del 'lang'
6
- $redis.del 'lang/fr'
+ Redis.new.del 'lang'
+ Redis.new.del 'lang/fr'
7
end
8
9
test 'should have no language' do
test/models/vote_test.rb
@@ -16,8 +16,8 @@ def setup
16
@account = accounts(:joe)
17
18
# Reset redis related data
19
- $redis.del "nodes/#{@node.id}/votes/#{@account.id}"
20
- $redis.del "nodes/#{@node.id}/votes/#{accounts(:bob).id}"
+ Redis.new.del "nodes/#{@node.id}/votes/#{@account.id}"
+ Redis.new.del "nodes/#{@node.id}/votes/#{accounts(:bob).id}"
21
22
23
test 'A node has a score of 0 by default' do
0 commit comments