mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
update rspec to 2.14
This commit is contained in:
parent
cac2b9512a
commit
79192c63a7
6 changed files with 6 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ doc
|
|||
.rvmrc
|
||||
.bundle
|
||||
Gemfile.lock
|
||||
spec/deprecations.log
|
1
.rspec
Normal file
1
.rspec
Normal file
|
@ -0,0 +1 @@
|
|||
--color --format documentation
|
|
@ -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|
|
||||
|
|
4
Rakefile
4
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue