spec/rakismet_spec.rb in rakismet-1.5.3 vs spec/rakismet_spec.rb in rakismet-1.5.4
- old
+ new
@@ -37,20 +37,20 @@
end
describe ".validate_config" do
it "should raise an error if key is not found" do
Rakismet.key = ''
- lambda { Rakismet.send(:validate_config) }.should raise_error
+ lambda { Rakismet.send(:validate_config) }.should raise_error(Rakismet::Undefined)
end
it "should raise an error if url is not found" do
Rakismet.url = ''
- lambda { Rakismet.send(:validate_config) }.should raise_error
+ lambda { Rakismet.send(:validate_config) }.should raise_error(Rakismet::Undefined)
end
it "should raise an error if host is not found" do
Rakismet.host = ''
- lambda { Rakismet.send(:validate_config) }.should raise_error
+ lambda { Rakismet.send(:validate_config) }.should raise_error(Rakismet::Undefined)
end
end
describe ".validate_key" do
it "should use proxy host and port" do