spec/unit/spec_helper.rb in jpmobile-4.1.0 vs spec/unit/spec_helper.rb in jpmobile-4.1.1

- old
+ new

@@ -1,7 +1,8 @@ require 'rubygems' require 'rspec' +require 'rspec/its' $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))) require 'jpmobile' begin require File.dirname(__FILE__)+'/../../vendor/jpmobile-ipaddresses/lib/jpmobile-ipaddresses' rescue LoadError @@ -11,12 +12,15 @@ require File.dirname(__FILE__)+'/../../vendor/jpmobile-terminfo/lib/jpmobile-terminfo' rescue LoadError puts "Terminal display information test requires jpmobile-terminfo module" end -RSpec.configure do |c| - c.filter_run :focus => true - c.run_all_when_everything_filtered = true - c.color_enabled = true - c.filter_run_excluding :broken => true - # c.full_backtrace = true +RSpec.configure do |config| + config.filter_run :focus => true + config.run_all_when_everything_filtered = true + config.color = true + config.filter_run_excluding :broken => true + config.expect_with :rspec do |c| + c.syntax = [:should, :expect] + end + # config.full_backtrace = true end