Skip to content

remove old implements #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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