Sha256: 55fd3013fba0b2743bf6d869491fb5af40b7e12bd46de2bc81c692a35bba6822
Contents?: true
Size: 939 Bytes
Versions: 1
Compression:
Stored size: 939 Bytes
Contents
require 'rspec' require 'simplecov' require 'active_rest_client' require "ostruct" if ENV["JENKINS"] require 'simplecov-rcov' SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter end require 'coveralls' Coveralls.wear! RSpec.configure do |config| config.color_enabled = true # config.formatter = 'documentation' config.treat_symbols_as_metadata_keys_with_true_values = true # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' end class TestCacheStore def initialize @items = {} end def read(key) @items[key] end def write(key, value, options={}) @items[key] = value end def fetch(key, &block) read(key) || begin value = block.call write(value) value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_rest_client-0.9.66 | spec/spec_helper.rb |