mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
few components with rspec3 syntax
This commit is contained in:
@ -20,18 +20,18 @@ describe DistributedCache do
|
||||
end
|
||||
|
||||
Thread.pass
|
||||
cache1["hi"].should == nil
|
||||
expect(cache1["hi"]).to eq(nil)
|
||||
|
||||
end
|
||||
|
||||
it 'allows coerces symbol keys to strings' do
|
||||
cache1[:key] = "test"
|
||||
cache1["key"].should == "test"
|
||||
expect(cache1["key"]).to eq("test")
|
||||
|
||||
wait_for do
|
||||
cache2[:key] == "test"
|
||||
end
|
||||
cache2["key"].should == "test"
|
||||
expect(cache2["key"]).to eq("test")
|
||||
end
|
||||
|
||||
it 'sets other caches' do
|
||||
@ -49,7 +49,7 @@ describe DistributedCache do
|
||||
end
|
||||
|
||||
cache1.delete("foo")
|
||||
cache1["foo"].should == nil
|
||||
expect(cache1["foo"]).to eq(nil)
|
||||
|
||||
wait_for do
|
||||
cache2["foo"] == nil
|
||||
@ -64,7 +64,7 @@ describe DistributedCache do
|
||||
end
|
||||
|
||||
cache1.clear
|
||||
cache1["foo"].should == nil
|
||||
expect(cache1["foo"]).to eq(nil)
|
||||
wait_for do
|
||||
cache2["boom"] == nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user