Sha256: 8821db1156855fe88b288c9da1d381321428d0eb24e48729c2a0b15a326a46a0
Contents?: true
Size: 433 Bytes
Versions: 31
Compression:
Stored size: 433 Bytes
Contents
class FakeGithub RECORDER = File.expand_path(File.join('..', '..', 'tmp', 'hub_commands'), File.dirname(__FILE__)) def initialize(args) @args = args end def run! File.open(RECORDER, 'a') do |file| file.write @args.join(' ') end end def self.clear! FileUtils.rm_rf RECORDER end def self.has_created_repo?(repo_name) File.open(RECORDER, 'r').read.include?("create #{repo_name}") end end
Version data entries
31 entries across 31 versions & 5 rubygems