Sha256: 44da06af7c3aab83e3cd43aca13254bfd28d317a3cef051fa6c24a9b02dba550
Contents?: true
Size: 1.2 KB
Versions: 21
Compression:
Stored size: 1.2 KB
Contents
require 'spec_helper' module Trackman module Utility class Debugger def self.send_data data data end end end end describe Trackman::Utility::Debugger do before :all do module Trackman module Assets class RemoteAsset class << self alias old_all all def all [] end end end end end end after :all do module Trackman module Assets class RemoteAsset class << self alias all old_all end end end end end describe "log_exception" do it "returns everything I need" do ex = Trackman::Errors::ConfigSetupError.new result = Trackman::Utility::Debugger.log_exception ex result[:ruby_version].should_not be_nil result[:rails_version].should_not be_nil result[:gem_version].should_not be_nil result[:local].should == [] result[:remote].should == [] result[:exception][:class].should == "Trackman::Errors::ConfigSetupError" result[:exception][:message].should == ex.message result[:exception][:backtrace].should == ex.backtrace end end end
Version data entries
21 entries across 21 versions & 1 rubygems