Sha256: fdfb33961d4a6d420ffc1995a201af6b0dfd490af769803ca8f2c527927595aa
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../", __FILE__) $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "simplecov" SimpleCov.start require "syoboi_calendar" require "webmock/rspec" WebMock.allow_net_connect! module SyoboiCalendar::Fixture extend self FIXTURE_DIR = File.expand_path("../fixtures", __FILE__) private def method_missing(method_name, *args) cache[method_name] ||= begin path = "#{FIXTURE_DIR}/#{method_name}" File.exist?(path) ? cache[method_name] = File.read(path) : nil end end def cache @cache ||= {} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
syoboi_calendar-0.1.3 | spec/spec_helper.rb |
syoboi_calendar-0.1.2 | spec/spec_helper.rb |
syoboi_calendar-0.1.0 | spec/spec_helper.rb |
syoboi_calendar-0.0.1 | spec/spec_helper.rb |