Skip to content

Commit

Permalink
Fix uninitialized constant RSpec::Mocks::ExampleMethods error
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Apr 5, 2020
1 parent 47a0444 commit 7f8a9ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
require 'timecop'
require 'pry'

# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories.
Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }

# Load our own config
require_relative 'config_rspec'
require_relative 'config_capybara'

# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories.
Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }

def test_request
if Rails.version >= '5.1'
ActionController::TestRequest.create(ActionController::Metal)
Expand Down

0 comments on commit 7f8a9ac

Please sign in to comment.