spec/spec_helper.rb in squib-0.8.0 vs spec/spec_helper.rb in squib-0.9.0
- old
+ new
@@ -1,8 +1,8 @@
require 'simplecov'
require 'coveralls'
-require 'byebug'
+# require 'byebug'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
@@ -12,9 +12,17 @@
RSpec.configure do |config|
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
+end
+
+def tmp_dir
+ "#{File.expand_path(File.dirname(__FILE__))}/../tmp"
+end
+
+def samples_dir
+ File.expand_path("#{File.dirname(__FILE__)}/../samples")
end
def layout_file(str)
"#{File.expand_path(File.dirname(__FILE__))}/data/layouts/#{str}"
end