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

Version Path
tirantes-1.0.8 features/support/fake_github.rb
tirantes-1.0.7 features/support/fake_github.rb
suspenders-1.7.0 features/support/fake_github.rb
suspenders-1.6.0 features/support/fake_github.rb
railslove-suspenders-0.1.3 features/support/fake_github.rb
railslove-suspenders-0.1.2 features/support/fake_github.rb
railslove-suspenders-0.1.1 features/support/fake_github.rb
suspenders-1.5.1 features/support/fake_github.rb
suspenders-1.5.0 features/support/fake_github.rb
welaika-suspenders-1.4.0 features/support/fake_github.rb
suspenders-1.4.0 features/support/fake_github.rb
railslove-suspenders-0.1.0 features/support/fake_github.rb
welaika-suspenders-1.2.10 features/support/fake_github.rb
suspenders-1.3.0 features/support/fake_github.rb
welaika-suspenders-1.2.9 features/support/fake_github.rb
welaika-suspenders-1.2.8 features/support/fake_github.rb
welaika-suspenders-1.2.7 features/support/fake_github.rb
welaika-suspenders-1.2.6 features/support/fake_github.rb
welaika-suspenders-1.2.5 features/support/fake_github.rb
welaika-suspenders-1.2.4 features/support/fake_github.rb