Skip to content

Commit

Permalink
Sync spec_helper in mspec tests with upstream file
Browse files Browse the repository at this point in the history
We now have a MSpecMatchers module, and we can just add another stub
file to load our spec helper.
  • Loading branch information
herwinw committed Jan 18, 2025
1 parent e9c38cd commit 6477572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/mspec/mspec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require_relative '../spec_helper'
4 changes: 2 additions & 2 deletions test/mspec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config.raise_errors_for_deprecations!
end

require_relative '../spec_helper'
require 'mspec'

# Remove this when MRI has intelligent warnings
$VERBOSE = nil unless $VERBOSE
Expand Down Expand Up @@ -63,7 +63,7 @@ def ensure_mspec_method(method)
end

PublicMSpecMatchers = Class.new {
# include MSpecMatchers
include MSpecMatchers
public :raise_error
}.new

Expand Down

0 comments on commit 6477572

Please sign in to comment.