spec/zelda/zender_spec.rb in bartzon-zelda-0.0.3 vs spec/zelda/zender_spec.rb in bartzon-zelda-0.0.5
- old
+ new
@@ -25,9 +25,14 @@
it "should return a new Zender" do
find_zender.should be_a(Zelda::Zender)
end
+ it "should return nil if the zender cannot be found" do
+ Zelda::Request.stub!(:get).and_return nil
+ find_zender.should be_nil
+ end
+
it "should return the correct name" do
find_zender.name.should == "Nederland 1"
end
end
end