Sha256: 1a362f4f1f50e7ca6692dce5001d16269ef8f8e05264ca856a11cfdc745c291c
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
module SpecSupport class Fixture def self.path(path) absolute_path = File.expand_path("../../fixtures/#{path}", __FILE__) fixture = Dir.glob("#{absolute_path}*").first raise ArgumentError, "Unable to find fixture #{path.inspect}" unless fixture fixture end end def fixture(path) Fixture.path(path) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sekken-0.3.0 | spec/support/fixture.rb |
sekken-0.2.0 | spec/support/fixture.rb |
sekken-0.1.0 | spec/support/fixture.rb |