Sha256: 204db62905078e018ac16aedc089e4498f5c5d023b35a4c0eef20daf64afd492
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
require 'spec_helper' describe Safely::Strategy::Hoptoad do it "should be configurable" do Safely::Strategy::Hoptoad.should respond_to(:hoptoad_key) Safely::Strategy::Hoptoad.should respond_to(:hoptoad_key=) end it "should report when configured" do Safely::Strategy::Hoptoad.hoptoad_key = "foo" Toadhopper.any_instance.expects(:post!) safely do raise "Argh" end end it "should not bother when not configured" do Safely::Strategy::Hoptoad.hoptoad_key = nil Toadhopper.any_instance.expects(:post!).never safely do raise "Argh" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
safely-0.3.1 | spec/strategies/hoptoad_spec.rb |
safely-0.3.0 | spec/strategies/hoptoad_spec.rb |
safely-0.2.0 | spec/strategies/hoptoad_spec.rb |
safely-0.1.0 | spec/strategies/hoptoad_spec.rb |