Skip to content

Commit

Permalink
Update load path modification in mspec-run.rb
Browse files Browse the repository at this point in the history
This file has probably been moved at some point, the old version would to
`lib/mspec/lib` which does not exist. The new version is inspired by the syntax
of `bin/mspec-run` to keep things consistent.

Since the usual way to call this script is via `bin/mspec-run`, and that sets up
your load path, an alternative way to fix this would be to simply remove this
load path update in this file.
  • Loading branch information
herwinw committed Jan 8, 2025
1 parent 52431ca commit 57e1ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mspec/commands/mspec-run.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby

$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
$:.unshift File.expand_path('../../..', __FILE__)

require 'mspec/version'
require 'mspec/utils/options'
Expand Down

0 comments on commit 57e1ea2

Please sign in to comment.