spec/spec_helper.rb in r509-0.9.2 vs spec/spec_helper.rb in r509-0.10.0
- old
+ new
@@ -1,11 +1,11 @@
-if (RUBY_VERSION.split('.')[1].to_i > 8 or RUBY_VERSION.split('.')[0].to_i > 1)
- begin
- require 'simplecov'
- SimpleCov.start
- rescue LoadError
- end
+require 'simplecov'
+SimpleCov.start
+begin
+ require 'coveralls'
+ Coveralls.wear!
+rescue LoadError
end
$:.unshift File.expand_path("../../lib", __FILE__)
$:.unshift File.expand_path("../", __FILE__)
require 'rubygems'
@@ -18,6 +18,10 @@
puts "\e[#{31}mWARNING: NOT RUNNING EC TESTS BECAUSE EC IS UNSUPPORTED ON YOUR RUBY INSTALLATION\e[0m"
R509.print_debug
RSpec.configure do |c|
c.filter_run_excluding :ec => true
end
+end
+
+RSpec.configure do |config|
+ config.alias_it_should_behave_like_to :it_validates, "it validates"
end