Sha256: e7b3ec0f9cd24fd948b65a9a9e562409b16b494c65ed70874990167624baeff0
Contents?: true
Size: 897 Bytes
Versions: 22
Compression:
Stored size: 897 Bytes
Contents
require 'spec_helper' describe FbGraph do subject { FbGraph } after { FbGraph.debugging = false } its(:logger) { should be_a Logger } its(:debugging?) { should be_false } describe '.debug!' do before { FbGraph.debug! } its(:debugging?) { should be_true } end describe '.debug' do it 'should enable debugging within given block' do FbGraph.debug do Rack::OAuth2.debugging?.should be_true FbGraph.debugging?.should be_true end Rack::OAuth2.debugging?.should be_false FbGraph.debugging?.should be_false end it 'should not force disable debugging' do Rack::OAuth2.debug! FbGraph.debug! FbGraph.debug do Rack::OAuth2.debugging?.should be_true FbGraph.debugging?.should be_true end Rack::OAuth2.debugging?.should be_true FbGraph.debugging?.should be_true end end end
Version data entries
22 entries across 22 versions & 1 rubygems