Skip to content
Browse files

Fixed specs

Slower now but, they work
  • Loading branch information...
1 parent 2664c0f commit 5978160e4ba2283f5a627ec164f532792009072d @tj tj committed
Showing with 2 additions and 19 deletions.
  1. +2 −19 spec/ruby/bin/spec_helper.rb
View
21 spec/ruby/bin/spec_helper.rb
@@ -3,23 +3,6 @@
load File.dirname(__FILE__) + '/../../../bin/jspec'
-def jspec name, *args
- capture do
- command(name).run *args
- end
+def jspec *args
+ `#{JSPEC_ROOT}/bin/jspec #{args.join(' ')}`
end
-
-def capture &block
- IO.popen('-') do |io|
- io ? io.read : yield
- end
-end
-
-def shell *args
- IO.popen(JSPEC_ROOT + '/bin/jspec shell', 'r+') do |io|
- args.each do |arg|
- io.puts arg
- end
- io.read
- end
-end

0 comments on commit 5978160

Please sign in to comment.
Something went wrong with that request. Please try again.