spec/spec_helper.rb in melissadata-0.0.1 vs spec/spec_helper.rb in melissadata-0.1.0
- old
+ new
@@ -1,19 +1,20 @@
require 'bundler'
Bundler.setup
-if RUBY_VERSION =~ /^1\.9/
- require 'simplecov'
- SimpleCov.start
-else
- require 'rspec'
- require 'rcov'
-end
+# if RUBY_VERSION =~ /^1\.9/
+# require 'simplecov'
+# SimpleCov.start
+# else
+# require 'rspec'
+# require 'rcov'
+# end
# # Add this folder to the load path for "spec_helper"
# $:.unshift(File.dirname(__FILE__))
+require 'vagrant/test_helpers'
require 'melissadata'
MelissaData.env = :test
# Try to load ruby debug since its useful if it is available.
@@ -22,12 +23,16 @@
begin
require 'ruby-debug'
rescue LoadError
end
+Dir[File.expand_path("helpers/**/*.rb", File.dirname(__FILE__))].each {|f| require f}
+
# Add the I18n locale for tests
I18n.load_path << File.expand_path("../locales/en.yml", __FILE__)
RSpec.configure do |c|
# Some opts are set in Guardfile
c.color_enabled = true
+ # include Vagrant::TestHelpers
+ include VagrantHelpers
end