Sha256: cf3609a38de154561d60d07b7c7a9e21c29d6341214f72b4bc5a9498023c9444
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
underlay-2.0 | spec/support/fake_github.rb |
underlay-1.52.1 | spec/support/fake_github.rb |
underlay-1.50.1 | spec/support/fake_github.rb |