specs/spec_helper.rb in fbgraph-1.8.0 vs specs/spec_helper.rb in fbgraph-1.8.3

- old
+ new

@@ -1,8 +1,12 @@ $LOAD_PATH << File.expand_path('../../lib', __FILE__) require 'rubygems' require 'fbgraph' -require 'redgreen' +begin + require 'redgreen' +rescue LoadError + # No pretty colors in Ruby 1.9+. +end def expect_consumer(uri, result = '') consumer = @client.consumer[uri] consumer.stub!(:get).and_return(Struct.new(:body).new(result)) @client.consumer.stub!(:[]).with(uri).and_return(consumer)