Skip to content

Commit

Permalink
Disable RSpec monkey-patching
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrce committed Nov 2, 2014
1 parent ebdc2d2 commit ee45233
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion spec/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class User < ActiveRecord::Base
])


describe "with real ActiveRecord," do
RSpec.describe "with real ActiveRecord," do

it "contains two users" do
expect(User.count).to eq(2)
Expand Down
2 changes: 1 addition & 1 deletion spec/serialization_helper_base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe SerializationHelper::Base do
RSpec.describe SerializationHelper::Base do
def prestub_active_record
end

Expand Down
2 changes: 1 addition & 1 deletion spec/serialization_helper_dump_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe SerializationHelper::Dump do
RSpec.describe SerializationHelper::Dump do

before do
allow(ActiveRecord::Base).to receive(:connection).and_return(double('connection').as_null_object)
Expand Down
2 changes: 1 addition & 1 deletion spec/serialization_helper_load_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe SerializationHelper::Load do
RSpec.describe SerializationHelper::Load do

before do
allow(SerializationHelper::Utils).to receive(:quote_table).with('mytable').and_return('mytable')
Expand Down
2 changes: 1 addition & 1 deletion spec/serialization_utils_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe SerializationHelper::Utils, " convert records utility method" do
RSpec.describe SerializationHelper::Utils, " convert records utility method" do

before do
allow(ActiveRecord::Base).to receive(:connection).and_return(double('connection').as_null_object)
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
#config.disable_monkey_patching!
config.disable_monkey_patching!

# This setting enables warnings. It's recommended, but in some cases may
# be too noisy due to issues in dependencies.
Expand Down
2 changes: 1 addition & 1 deletion spec/yaml_dump_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe YamlDb::Dump do
RSpec.describe YamlDb::Dump do

before do
allow(ActiveRecord::Base).to receive(:connection).and_return(double('connection').as_null_object)
Expand Down
2 changes: 1 addition & 1 deletion spec/yaml_load_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'active_support/core_ext/kernel/debugger'

describe YamlDb::Load do
RSpec.describe YamlDb::Load do

before do
allow(SerializationHelper::Utils).to receive(:quote_table).with('mytable').and_return('mytable')
Expand Down
2 changes: 1 addition & 1 deletion spec/yaml_utils_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe YamlDb::Utils, " convert records utility method" do
RSpec.describe YamlDb::Utils, " convert records utility method" do

it "turns an array with one record into a yaml chunk" do
expect(YamlDb::Utils.chunk_records([ %w(a b) ])).to eq(<<EOYAML
Expand Down

0 comments on commit ee45233

Please sign in to comment.