spec/storage_engine/abstract_spec.rb in lawnchair-0.5.5 vs spec/storage_engine/abstract_spec.rb in lawnchair-0.5.6
- old
+ new
@@ -88,9 +88,16 @@
describe ".computed_key" do
it "should prepend keys with Lawnchair:" do
abstract_store.computed_key("hooo").should == "Lawnchair:hooo"
end
+
+ it "raises an exception if a key has a space" do
+ lambda do
+ abstract_store.computed_key("hooo tyyyyy")
+ end.should raise_error
+ end
+
it "raises an exception if no key is given" do
lambda do
abstract_store.computed_key("") { 1 }
end.should raise_error
\ No newline at end of file