Sha256: 045864492a099f5a352aa1e354583f1633bf7d6d6e88d8ee09bfadcfc7507933

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

require 'spec_helper'

describe ActionKitRest do
  describe 'logging' do
    it "should have a logger" do
      ActionKitRest.respond_to?(:logger).should be_true
    end

    it "should be able to log debug methods" do
      ActionKitRest.logger.respond_to?(:debug).should be_true
    end

    it "should be settable" do
      ActionKitRest.respond_to?(:logger=).should be_true
      log = mock()
      ActionKitRest.logger = log
      ActionKitRest.logger.should == log
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
action_kit_rest-0.2.0 spec/action_kit_rest/logger_spec.rb
action_kit_rest-0.1.1 spec/action_kit_rest/logger_spec.rb