Sha256: df2096e49092b11dc9c2bde05ed8a67636ab252ff1bbaf5fae9c813b9409c9df
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Safely do describe "configuration" do it "should accept a Hoptoad api key" do Safely.configure do |c| c.hoptoad_key = "foo" end Safely.config.hoptoad_key.should == "foo" end end describe "integration" do it "should be mixed into Kernel" do Object.should respond_to(:safely) end it "should be mixed into instances" do Object.new.should respond_to(:safely) end end describe "strategies" do it "should load Toadhopper if present" do Safely.load_strategies! defined?( Toadhopper ).should be_true end it "should load Mail if present" do Safely.load_strategies! defined?( Mail ).should be_true end end describe "usage" do it "should report exceptions to hoptoad" do Safely::Strategy::Hoptoad.expects(:report!) Safely::Strategy::Mail.expects(:report!) safely do raise "Hello" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
safely-0.3.2 | spec/safely_spec.rb |
safely-0.3.1 | spec/safely_spec.rb |
safely-0.3.0 | spec/safely_spec.rb |
safely-0.2.0 | spec/safely_spec.rb |
safely-0.1.0 | spec/safely_spec.rb |