Sha256: feaec47b4fc72ae292ca74db78d00764bd5289496a1c0605a1ab01038543b7a2
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 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.read(RECORDER) == "create #{repo_name}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.55.1 | spec/support/fake_github.rb |
suspenders-1.55.0 | spec/support/fake_github.rb |