Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### CODE
- ```ruby
- require 'minitest/autorun'
- describe ArrayFinder do
- describe "create new finder" do
- it "sets collection to empty" do
- collection = %w{1 2 3 4 5}
- finder = ArrayFinder.new(collection)
- finder.collection.must_equal collection
- end
- end
- end
- ```
- ### RBX O/P
- ```
- ९ ruby -X19 try_errors.rb
- An exception occurred running try_errors.rb
- Missing or uninitialized constant: Object::ArrayFinder (NameError)
- Backtrace:
- Module(Class)#const_missing at kernel/common/module.rb:468
- Object#__script__ at try_errors.rb:3
- Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:67
- Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:109
- Rubinius::Loader#script at kernel/loader.rb:632
- Rubinius::Loader#main at kernel/loader.rb:836
- Run options: --seed 1793
- # Running tests:
- Finished tests in 0.000613s, 0.0000 tests/s, 0.0000 assertions/s.
- 0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
- ```
- ### JRuby O/P
- ```
- NameError: uninitialized constant ArrayFinder
- const_missing at org/jruby/RubyModule.java:2642
- (root) at try_errors.rb:3
- ```
Add Comment
Please, Sign In to add comment