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
|
.rvmrc
|
||||||
.bundle
|
.bundle
|
||||||
Gemfile.lock
|
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
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
* make a Ruby object *be* your JavaScript environment
|
* make a Ruby object be your JavaScript environment
|
||||||
```ruby
|
```ruby
|
||||||
math = MyMath.new
|
math = MyMath.new
|
||||||
Rhino::Context.open(:with => math) do |context|
|
Rhino::Context.open(:with => math) do |context|
|
||||||
|
|
4
Rakefile
4
Rakefile
|
@ -1,9 +1,7 @@
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
|
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
RSpec::Core::RakeTask.new do |spec|
|
RSpec::Core::RakeTask.new
|
||||||
spec.rspec_opts = ['--color', "--format documentation"]
|
|
||||||
end
|
|
||||||
|
|
||||||
task :default => :spec
|
task :default => :spec
|
||||||
|
|
||||||
|
|
|
@ -35,4 +35,5 @@ end
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.filter_run_excluding :compat => /(0.5.0)|(0.6.0)/ # RedJS
|
config.filter_run_excluding :compat => /(0.5.0)|(0.6.0)/ # RedJS
|
||||||
config.include Rhino::SpecHelpers
|
config.include Rhino::SpecHelpers
|
||||||
|
config.deprecation_stream = 'spec/deprecations.log'
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,6 +20,6 @@ Gem::Specification.new do |s|
|
||||||
|
|
||||||
s.add_dependency "therubyrhino_jar", '>= 1.7.3'
|
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"
|
s.add_development_dependency "mocha", "~> 0.13.3"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue