Commit 658c43ab authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Require rubygems inside the smoke test instead.

Drop the statement from JSDuck code itself.
parent b7142423
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
require 'rubygems'
require 'parallel'

module JsDuck
+3 −1
Original line number Diff line number Diff line
@@ -2,7 +2,9 @@
describe "smoke test running jsduck --version" do

  it "does not crash" do
    `./bin/jsduck --version`
    # Explicitly include rubygems, otherwise TravisCI will fail to
    # load the parallel and possibly other gems in Ruby 1.8
    `ruby -e 'require "rubygems"' ./bin/jsduck --version`
    $?.exitstatus.should == 0
  end