Sha256: 5fc96854580393d2f16038fc3a1e0b0bce85cc17786484a7b17b82b6f4e550b9

Contents?: true

Size: 694 Bytes

Versions: 10

Compression:

Stored size: 694 Bytes

Contents

RSpec.configure do |config|
  fixtures_path = File.expand_path('../../fixtures', __FILE__)
  dummy_path = File.join(fixtures_path, 'dummy')
  origin_path = File.join(fixtures_path, 'origin.git')

  config.before(:each) do
    [dummy_path, origin_path].each do |path|
      FileUtils.rm_rf(path) if Dir.exists?(path)
      FileUtils.mkdir_p(path)
    end
    Dir.chdir(dummy_path)
    system('git init .')
    system('touch dummy.txt')
    system('git add .')
    system('git commit -m"init commit"')
    Dir.chdir(origin_path)
    system('git init . --bare')
    Dir.chdir(dummy_path)
    system("git remote add origin file://#{origin_path}")
    system("git push -u origin master")
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pt-flow-2.2.0 spec/support/dummy.rb
pt-flow-2.1.0 spec/support/dummy.rb
pt-flow-2.0.0 spec/support/dummy.rb
pt-flow-1.1.1 spec/support/dummy.rb
pt-flow-1.1.0 spec/support/dummy.rb
pt-flow-1.0.0 spec/support/dummy.rb
pt-flow-0.8.2 spec/support/dummy.rb
pt-flow-0.8.1 spec/support/dummy.rb
pt-flow-0.8.0 spec/support/dummy.rb
pt-flow-0.7.0 spec/support/dummy.rb