few components with rspec3 syntax
This commit is contained in:
parent
c96220ca76
commit
0fd98b56d8
97 changed files with 1620 additions and 1618 deletions
|
@ -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 a new issue