spec/unit/battlenet_spec.rb in battlenet-1.1.0 vs spec/unit/battlenet_spec.rb in battlenet-1.1.1

- old
+ new

@@ -110,14 +110,10 @@ response.should_receive(:code).at_least(:once).and_return(500) Battlenet.should_receive(:get).and_return(response) end context "when fail_silently is off" do - before(:each) do - Battlenet.fail_silently = false - end - it "throws an exception" do lambda { api.get '/test' }.should raise_error end @@ -126,10 +122,10 @@ context "when fail_silently is on" do before(:each) do Battlenet.fail_silently = true end - it "throws an exception" do + it "does not throw an exception" do lambda { api.get '/test' }.should_not raise_error end end