spec/integration_helper.rb in braid-1.0.8 vs spec/integration_helper.rb in braid-1.0.9
- old
+ new
@@ -4,13 +4,13 @@
require 'tempfile'
require 'fileutils'
require 'pathname'
-TMP_PATH = File.join(Dir.tmpdir, "braid_integration")
+TMP_PATH = File.join(Dir.tmpdir, 'braid_integration')
BRAID_PATH = Pathname.new(File.dirname(__FILE__)).parent.realpath
-FIXTURE_PATH = File.join(BRAID_PATH, "spec", "fixtures")
+FIXTURE_PATH = File.join(BRAID_PATH, 'spec', 'fixtures')
FileUtils.rm_rf(TMP_PATH)
FileUtils.mkdir_p(TMP_PATH)
BRAID_BIN = ((defined?(JRUBY_VERSION) || Gem.win_platform?) ? 'ruby ' : '') + File.join(BRAID_PATH, 'bin', 'braid')
@@ -26,10 +26,10 @@
end
def update_dir_from_fixture(dir, fixture = dir)
to_dir = File.join(TMP_PATH, dir)
FileUtils.mkdir_p(to_dir)
- FileUtils.cp_r(File.join(FIXTURE_PATH, fixture) + "/.", to_dir)
+ FileUtils.cp_r(File.join(FIXTURE_PATH, fixture) + '/.', to_dir)
end
def create_git_repo_from_fixture(fixture_name)
git_repo = File.join(TMP_PATH, fixture_name)
update_dir_from_fixture(fixture_name)