Permalink
Browse files

Add .git folder for dummy repository in specs

  • Loading branch information...
1 parent 1845889 commit bb742992d9cca588c90b270252184f5921296b6a @yevgenko yevgenko committed Dec 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/spec_helper.rb
View
@@ -14,6 +14,10 @@
Strano.clone_path = File.join(::Rails.root, '/spec/repos')
REPO_ROOT = File.expand_path("../repos", __FILE__)
+# Create .git folder for dummy repo since we can't have it in actual tree
+STRANO_GIT = "#{REPO_ROOT}/joelmoss/strano/.git"
+Dir.mkdir(STRANO_GIT) unless File.exists?(STRANO_GIT)
+
RSpec.configure do |config|
config.mock_with :rspec
@@ -43,4 +47,4 @@
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
-end
+end

0 comments on commit bb74299

Please sign in to comment.