Skip to content

Commit

Permalink
Ensure ARGV[0] is present when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtykocki committed Feb 22, 2013
1 parent d925510 commit 2a34f9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ GEM
kgio (2.7.4)
launchy (2.0.5)
addressable (~> 2.2.6)
libv8 (3.11.8.13)
libwebsocket (0.1.5)
addressable
libxml-ruby (2.3.3)
Expand Down Expand Up @@ -212,7 +211,6 @@ GEM
rdoc (3.12.1)
json (~> 1.4)
redcarpet (1.17.2)
ref (1.0.2)
rest-client (1.6.7)
mime-types (>= 1.16)
rsa (0.1.4)
Expand All @@ -239,9 +237,6 @@ GEM
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
therubyracer (0.11.3)
libv8 (~> 3.11.8.12)
ref
thin (1.5.0)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
Expand Down Expand Up @@ -326,7 +321,6 @@ DEPENDENCIES
sass-rails (~> 3.2.5)
show_me_the_cookies (~> 1.1.0)
simplecov (~> 0.4.0)
therubyracer (~> 0.11.3)
thin (~> 1.5.0)
tire (~> 0.4.1)
twitter (~> 3.5.0)
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

if ARGV[0].start_with?('test')
if ARGV[0] && ARGV[0].start_with?('test')
load 'lib/tasks/minitest.rake'
else
require File.expand_path('../config/application', __FILE__)
Expand Down

0 comments on commit 2a34f9c

Please sign in to comment.