spec/round_robin_spec.rb in docket-0.1.1 vs spec/round_robin_spec.rb in docket-0.1.2
- old
+ new
@@ -50,9 +50,15 @@
end
it "removes the identifier" do
expect($storage.read("trainer_15")).to be_nil
end
+
+ context 'when key not set' do
+ it 'does not raise an error' do
+ round_robin.unset("trainer_not_exists")
+ end
+ end
end
describe '#perform' do
it "takes the next robin and calls action with it" do
action = lambda { |robin| @animal_to_train = robin }