diff --git a/Gemfile b/Gemfile index 06b04f6..aabeeca 100644 --- a/Gemfile +++ b/Gemfile @@ -2,16 +2,3 @@ source 'https://rubygems.org' # Specify gem's dependencies in docile.gemspec gemspec - -# Explicitly require test gems for Travis CI, since we're excluding dev dependencies -group :test do - gem 'rake', '~> 0.9.2' - gem 'rspec', '~> 2.11.0' - gem 'mime-types', '~> 1.25.1' - gem 'coveralls', :require => false - - platform :rbx do - gem 'rubysl' # Since 2.2.0, Rubinius needs Ruby standard lib as gem - gem 'rubinius-coverage' # Coverage tooling for SimpleCov on Rubinius - end -end diff --git a/docile.gemspec b/docile.gemspec index 4187d52..98c68dc 100644 --- a/docile.gemspec +++ b/docile.gemspec @@ -20,7 +20,8 @@ Gem::Specification.new do |s| # Running rspec tests from rake s.add_development_dependency 'rake', '~> 0.9.2' - s.add_development_dependency 'rspec', '~> 2.11.0' + s.add_development_dependency 'rspec', '~> 2.14.0' + s.add_development_dependency 'mime-types', '~> 1.25.1' # Github flavored markdown in YARD documentation # http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html @@ -30,4 +31,9 @@ Gem::Specification.new do |s| # Coveralls test coverage tool s.add_development_dependency 'coveralls' + + if 'rbx' == RUBY_ENGINE then + s.add_development_dependency 'rubysl' + s.add_development_dependency 'rubinius-coverage' + end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f46df08..4cd8c40 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,3 +20,9 @@ lib_dir = File.join(File.dirname(test_dir), 'lib') $LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include?(lib_dir) require 'docile' + +RSpec.configure do |config| + config.expect_with :rspec do |c| + c.syntax = :expect + end +end \ No newline at end of file