Sha256: 0633377c6724139fbe9b05861554e3e7b1746c2f1d498aa86670e8bde4258306

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

require 'fileutils'

# a bunch of things that should never be called in testing due to side effects
module Railsthemes
  class Safe
    def self.system_call s
      verify_not_testing
      `#{s}`
    end

    def self.log_and_abort s
      abort s
    end

    def self.verify_not_testing
      false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railsthemes-0.0.1 lib/railsthemes/safe.rb