Sha256: db2c60f3844d8c1799059ccbc32c71fa5f4ea5d993b92ef7a3e8bc49c4ab8ff2
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 Bytes
Contents
module TestData module Configurators class EnvironmentFile def initialize @generator = EnvironmentFileGenerator.new @config = TestData.config end def verify path = "config/environments/test_data.rb" pathname = Pathname.new("#{@config.pwd}/#{path}") if pathname.readable? ConfigurationVerification.new(looks_good?: true) else ConfigurationVerification.new(problems: [ "'#{path}' is not readable" ]) end end def configure @generator.call end end end end
Version data entries
7 entries across 7 versions & 1 rubygems