Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lib/testrocket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ module TestRocket
extend Module.new { attr_accessor :out }

refine Proc do
# Include TestRocket methods WITHOUT implementation selected
Proc.send :include, TestRocket

# If we're in a production environment, the tests shall do nothing.
if ENV['RACK_ENV'] == 'production' ||
(defined?(Rails) && Rails.env.production?) ||
Expand All @@ -22,7 +19,7 @@ def _pend; end
def _desc; end
else
def _test(a, b); send((call rescue()) ? a : b) end
def _show(r); (TestRocket.out || STDERR) << r + "\n"; r end
def _show(r); (TestRocket.out || STDERR) << r + "\n" end
def _pass; ' OK' end
def _fail; " FAIL @ #{source_location * ':'}" end
def _pend; "PENDING '#{call}' @ #{source_location * ':'}" end
Expand Down