diff --git a/.gitignore b/.gitignore index 2834533..f7ec45a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ doc .rvmrc .bundle Gemfile.lock +spec/deprecations.log \ No newline at end of file diff --git a/.rspec b/.rspec new file mode 100644 index 0000000..b782d24 --- /dev/null +++ b/.rspec @@ -0,0 +1 @@ +--color --format documentation \ No newline at end of file diff --git a/README.md b/README.md index c21fda8..27c7329 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Rhino::Context.open do |context| end ``` -* make a Ruby object *be* your JavaScript environment +* make a Ruby object be your JavaScript environment ```ruby math = MyMath.new Rhino::Context.open(:with => math) do |context| diff --git a/Rakefile b/Rakefile index bb055f4..f9744cf 100644 --- a/Rakefile +++ b/Rakefile @@ -1,9 +1,7 @@ require 'bundler/setup' require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new do |spec| - spec.rspec_opts = ['--color', "--format documentation"] -end +RSpec::Core::RakeTask.new task :default => :spec diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3ccd84c..1035092 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,4 +35,5 @@ end RSpec.configure do |config| config.filter_run_excluding :compat => /(0.5.0)|(0.6.0)/ # RedJS config.include Rhino::SpecHelpers + config.deprecation_stream = 'spec/deprecations.log' end diff --git a/therubyrhino.gemspec b/therubyrhino.gemspec index 6811c4f..ff58f0c 100644 --- a/therubyrhino.gemspec +++ b/therubyrhino.gemspec @@ -20,6 +20,6 @@ Gem::Specification.new do |s| s.add_dependency "therubyrhino_jar", '>= 1.7.3' - s.add_development_dependency "rspec", "~> 2.13.0" + s.add_development_dependency "rspec", "~> 2.14.1" s.add_development_dependency "mocha", "~> 0.13.3" end