Top Level Namespace
- Includes:
- Wrong
Defined Under Namespace
Modules: IRB, RSpec, Sickill, Wrong Classes: Object, Ruby2Ruby, Sexp
Constant Summary
Constants included from Wrong
Instance Method Summary collapse
Methods included from Wrong
Methods included from Wrong::Assert
#assert, #deny, #failure_class, #failure_message, #increment_assertion_count
Methods included from Wrong::Helpers
Instance Method Details
#require_optionally(library) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/wrong/chunk.rb', line 5 def require_optionally(library) begin require library rescue LoadError => e raise e unless e. == "no such file to load -- #{library}" end end |
#wrong_adapter_failure(why) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/wrong/adapters/test_unit.rb', line 3 def wrong_adapter_failure(why) $stderr.puts why $stderr.puts <<-TEXT Make sure to use Bundler or Rubygems to load the test-unit gem. For example: require 'rubygems' gem 'test-unit' require 'test/unit' require 'wrong/adapters/test_unit' TEXT exit 1 end |