Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec: use config.disable_monkey_patching! #10

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions 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 Expand Up @@ -637,7 +637,7 @@ class MyName < Sequel::Model
end
end

describe "Sequel::Plugins::Bitemporal", "with audit and ranges" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with audit and ranges" do
before :all do
@audit_class = Class.new do
def self.audit(*args); end
Expand Down Expand Up @@ -735,7 +735,7 @@ def self.audit(*args); end
end
end
end
describe "Sequel::Plugins::Bitemporal", "with audit, ranges, specifying how to get the author" do
RSpec.describe "Sequel::Plugins::Bitemporal", "with audit, ranges, 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_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
6 changes: 3 additions & 3 deletions 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 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, ranges: true
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(
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