Sha256: 10d60adf66fa402eb7619e970ee3778398889d798a981479904e99495a032b22

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'homesick'
require 'rspec'
require 'rspec/autorun'
require 'construct'

RSpec.configure do |config|
  config.include Construct::Helpers

  config.before { ENV['HOME'] = home.to_s }

  config.before { silence! }

  def silence!
    homesick.stub(:say_status)
  end

  def given_castle(name, path=name)
    castles.directory(path) do |castle|
      Dir.chdir(castle) do
        system "git init >/dev/null 2>&1"
        system "git remote add origin git://github.com/technicalpickles/#{name}.git >/dev/null 2>&1"
        return castle.directory("home")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
homesick-0.8.1 spec/spec_helper.rb
homesick-0.8.0 spec/spec_helper.rb
yahomesick-0.1.1 spec/spec_helper.rb
yahomesick-0.1.0 spec/spec_helper.rb