spec/main.rb in Checked-0.1.4 vs spec/main.rb in Checked-1.0.0
- old
+ new
@@ -1,11 +1,16 @@
require File.expand_path('spec/helper')
require "Bacon_Colored"
require 'Checked'
+class Box
+ include Checked::DSL
+end
+BOX = Box.new
+
FOLDER = ("/tmp/Checked_Test")
%x! mkdir -p #{FOLDER}!
at_exit {
%x! rm -rf #{FOLDER} !
}
@@ -23,10 +28,9 @@
%x[ bundle exec ruby #{file} 2>&1].strip
ensure
File.delete file
end
end
-
Dir.glob('spec/tests/*.rb').each { |file|
require File.expand_path(file.sub('.rb', '')) if File.file?(file)
}