We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5828241 commit 500f992Copy full SHA for 500f992
.gitignore
@@ -2,3 +2,4 @@
2
.bundle
3
Gemfile.lock
4
coverage/
5
+.byebug_history
spec/stasche/client_spec.rb
@@ -74,6 +74,11 @@
74
error_class = Stasche::Store::KeyAlreadyExistsError
75
expect { client.set(foo: 'bar') }.to raise_error(error_class)
76
end
77
+
78
+ it 'does not throws an exception if forced' do
79
+ error_class = Stasche::Store::KeyAlreadyExistsError
80
+ expect { client.set({foo: 'bar'}, {force: true}) }.to_not raise_error
81
+ end
82
83
84
0 commit comments