Skip to content

Commit 551e3aa

Browse files
committed
Disable RSpec monkey patching
1 parent b3f297e commit 551e3aa

10 files changed

+13
-9
lines changed

spec/ajax-datatables-rails/base_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::Base do
5+
RSpec.describe AjaxDatatablesRails::Base do
66

77
describe 'an instance' do
88
it 'requires a hash of params' do

spec/ajax-datatables-rails/datatable/column_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::Datatable::Column do
5+
RSpec.describe AjaxDatatablesRails::Datatable::Column do
66

77
let(:datatable) { ComplexDatatable.new(sample_params) }
88

spec/ajax-datatables-rails/datatable/datatable_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::Datatable::Datatable do
5+
RSpec.describe AjaxDatatablesRails::Datatable::Datatable do
66

77
let(:datatable) { ComplexDatatable.new(sample_params).datatable }
88
let(:datatable_json) { ComplexDatatable.new(sample_params_json).datatable }

spec/ajax-datatables-rails/datatable/simple_order_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::Datatable::SimpleOrder do
5+
RSpec.describe AjaxDatatablesRails::Datatable::SimpleOrder do
66

77
let(:parent) { ComplexDatatable.new(sample_params) }
88
let(:datatable) { parent.datatable }

spec/ajax-datatables-rails/datatable/simple_search_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::Datatable::SimpleSearch do
5+
RSpec.describe AjaxDatatablesRails::Datatable::SimpleSearch do
66

77
let(:options) { ActiveSupport::HashWithIndifferentAccess.new({ 'value' => 'search value', 'regex' => 'true' }) }
88
let(:simple_search) { AjaxDatatablesRails::Datatable::SimpleSearch.new(options) }

spec/ajax-datatables-rails/orm/active_record_filter_records_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::ORM::ActiveRecord do
5+
RSpec.describe AjaxDatatablesRails::ORM::ActiveRecord do
66

77
let(:datatable) { ComplexDatatable.new(sample_params) }
88
let(:records) { User.all }

spec/ajax-datatables-rails/orm/active_record_paginate_records_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::ORM::ActiveRecord do
5+
RSpec.describe AjaxDatatablesRails::ORM::ActiveRecord do
66

77
let(:datatable) { ComplexDatatable.new(sample_params) }
88
let(:records) { User.all }

spec/ajax-datatables-rails/orm/active_record_sort_records_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::ORM::ActiveRecord do
5+
RSpec.describe AjaxDatatablesRails::ORM::ActiveRecord do
66

77
let(:datatable) { ComplexDatatable.new(sample_params) }
88
let(:nulls_last_datatable) { DatatableOrderNullsLast.new(sample_params) }

spec/ajax-datatables-rails/orm/active_record_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper'
44

5-
describe AjaxDatatablesRails::ORM::ActiveRecord do
5+
RSpec.describe AjaxDatatablesRails::ORM::ActiveRecord do
66
context 'Private API' do
77
let(:datatable) { ComplexDatatable.new(sample_params) }
88

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
DatabaseCleaner.clean
5151
end
5252

53+
# disable monkey patching
54+
# see: https://relishapp.com/rspec/rspec-core/v/3-8/docs/configuration/zero-monkey-patching-mode
55+
config.disable_monkey_patching!
56+
5357
if ENV.key?('GITHUB_ACTIONS')
5458
config.around do |ex|
5559
ex.run_with_retry retry: 3

0 commit comments

Comments
 (0)