Skip to content

Commit

Permalink
RSpec: use config.disable_monkey_patching!
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Jan 28, 2019
1 parent cc6bc93 commit b1d91de
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions spec/bitemporal_date_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "spec_helper"

describe "Sequel::Plugins::Bitemporal" do
RSpec.describe "Sequel::Plugins::Bitemporal" do
before :all do
db_setup
end
Expand Down Expand Up @@ -791,7 +791,7 @@ def excluded_columns_for_changes
end
end

describe "Sequel::Plugins::Bitemporal", "with audit" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with audit" do
before :all do
@audit_class = Class.new do
def self.audit(*args); end
Expand Down Expand Up @@ -889,7 +889,7 @@ def self.audit(*args); end
end
end
end
describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the author" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the author" do
before :all do
@audit_class = Class.new do
def self.audit(*args); end
Expand Down
2 changes: 1 addition & 1 deletion spec/bitemporal_date_with_range_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "spec_helper"
if DbHelpers.pg?
describe "Sequel::Plugins::Bitemporal", "with ranges" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with ranges" do
before :all do
db_setup ranges: true
end
Expand Down
2 changes: 1 addition & 1 deletion spec/bitemporal_serialization_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "spec_helper"
require "json"

describe "Sequel::Plugins::Bitemporal", :skip_jdbc_sqlite do
RSpec.describe "Sequel::Plugins::Bitemporal", :skip_jdbc_sqlite do
before :all do
db_setup
@version_class.instance_eval do
Expand Down
6 changes: 3 additions & 3 deletions spec/bitemporal_time_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "spec_helper"

describe "Sequel::Plugins::Bitemporal" do
RSpec.describe "Sequel::Plugins::Bitemporal" do
let(:hour){ 3600 }
before :all do
db_setup use_time: true
Expand Down Expand Up @@ -381,7 +381,7 @@
expect(@master_class.with_current_or_future_versions.all.size).to eq(2)
end
end
describe "Sequel::Plugins::Bitemporal", "with audit" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with audit" do
before :all do
@audit_class = Class.new
db_setup use_time: true, audit_class: @audit_class
Expand Down Expand Up @@ -435,7 +435,7 @@
end
end

describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the author" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the author" do
before :all do
@audit_class = Class.new
db_setup use_time: true, audit_class: @audit_class, audit_updated_by_method: :author
Expand Down
2 changes: 1 addition & 1 deletion spec/bitemporal_time_with_range_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "spec_helper"
if DbHelpers.pg?
describe "Sequel::Plugins::Bitemporal" do
RSpec.describe "Sequel::Plugins::Bitemporal" do
let(:hour){ 3600 }
before :all do
db_setup use_time: true, ranges: true
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
RSpec.configure do |config|
config.include DbHelpers
config.filter_run_excluding rspec_exclusions
config.disable_monkey_patching!
config.before :each do
db_truncate
end
Expand Down

0 comments on commit b1d91de

Please sign in to comment.