mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Use proper wording for contexts in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
02987e05d5
commit
3eaac56797
@ -15,13 +15,11 @@ class TestCachedCounting
|
||||
end
|
||||
|
||||
RSpec.describe CachedCounting do
|
||||
|
||||
it "should be default disabled in test" do
|
||||
expect(CachedCounting.enabled?).to eq(false)
|
||||
end
|
||||
|
||||
context "backing implementation" do
|
||||
|
||||
describe "backing implementation" do
|
||||
it "can correctly check for flush to db lock" do
|
||||
CachedCounting.clear_flush_to_db_lock!
|
||||
|
||||
@ -55,7 +53,7 @@ RSpec.describe CachedCounting do
|
||||
end
|
||||
end
|
||||
|
||||
context "active record" do
|
||||
describe "active record" do
|
||||
class RailsCacheCounter < ActiveRecord::Base
|
||||
include CachedCounting
|
||||
self.table_name = "posts"
|
||||
|
Reference in New Issue
Block a user