spec/spec_helper.rb in shellshot-0.4.0 vs spec/spec_helper.rb in shellshot-0.4.1
- old
+ new
@@ -1,14 +1,13 @@
-
require File.expand_path(
File.join(File.dirname(__FILE__), %w[.. lib shellshot]))
require 'tmpdir'
require 'rubygems'
require 'ruby-debug'
-Spec::Matchers.define :be_a_file do
+Spec::Matchers.define :be_a_file do
match do |path|
File.exists?(path)
end
end
@@ -26,10 +25,10 @@
end
end
Spec::Runner.configure do |config|
config.before(:each) do
- @tmpdir = Dir.mktmpdir
+ @tmpdir = Dir.mktmpdir
Dir.chdir(@tmpdir)
end
config.after(:each) do
FileUtils.remove_entry_secure @tmpdir