Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add empty spec structure. judofyr/gash#7

  • Loading branch information...
commit 33685381795559bdd110dc20c710ebc3233c3baa 1 parent f465655
@oleander oleander authored
View
5 .rspec
@@ -0,0 +1,5 @@
+--color
+-fs
+-Ilib
+-Ispec
+--require spec_helper
View
5 Gemfile
@@ -1,2 +1,7 @@
source :rubygems
gemspec
+
+group :test do
+ gem "rspec-core"
+ gem "rspec"
+end
View
5 spec/gash_spec.rb
@@ -0,0 +1,5 @@
+describe Gash do
+ it "should not crash" do
+ true.should be_true
+ end
+end
View
10 spec/spec_helper.rb
@@ -0,0 +1,10 @@
+require "rspec"
+require "gash"
+require "./spec/support/helper"
+
+RSpec.configure do |config|
+ config.mock_with :rspec
+ config.include Helper
+ config.before(:each) { setup }
+ config.after(:each) { teardown }
+end
View
14 spec/support/helper.rb
@@ -0,0 +1,14 @@
+require "digest/sha1"
+module Helper
+ def path
+ @@path ||= "/tmp/#{Digest::SHA1.hexdigest(Time.now.to_s)}.git"
+ end
+
+ def setup
+ `mkdir #{path} && cd #{path} && git init`
+ end
+
+ def teardown
+ `rm -rf #{path}`
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.