diff --git a/lib/draper/version.rb b/lib/draper/version.rb index bba2ace..b17a538 100644 --- a/lib/draper/version.rb +++ b/lib/draper/version.rb @@ -1,3 +1,3 @@ module Draper - VERSION = "2.0.0" + VERSION = "2.1.0" end diff --git a/spec/draper/decorator_spec.rb b/spec/draper/decorator_spec.rb index a2a6ed3..36eb83e 100755 --- a/spec/draper/decorator_spec.rb +++ b/spec/draper/decorator_spec.rb @@ -531,7 +531,7 @@ module Draper describe "#===" do it "is true when #== is true" do decorator = Decorator.new(Model.new) - decorator.stub(:==).with(:anything).and_return(true) + allow(decorator).to receive(:==) { true } expect(decorator === :anything).to be_truthy end @@ -549,14 +549,14 @@ module Draper first = Decorator.new('foo') second = Decorator.new('foo') - expect(first.eql? second).to be_true + expect(first.eql? second).to be end it "is false when #eql? is false" do first = Decorator.new('foo') second = Decorator.new('bar') - expect(first.eql? second).to be_false + expect(first.eql? second).to_not be end end @@ -566,7 +566,7 @@ module Draper first = Decorator.new(object) second = Decorator.new(object) - expect(first.hash == second.hash).to be_true + expect(first.hash == second.hash).to be end end diff --git a/spec/dummy/spec/spec_helper.rb b/spec/dummy/spec/spec_helper.rb index cf47b60..aa3282b 100644 --- a/spec/dummy/spec/spec_helper.rb +++ b/spec/dummy/spec/spec_helper.rb @@ -3,7 +3,6 @@ require File.expand_path('../../config/environment', __FILE__) require 'rspec/rails' RSpec.configure do |config| - config.treat_symbols_as_metadata_keys_with_true_values = true config.expect_with(:rspec) {|c| c.syntax = :expect} config.order = :random end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dff12a1..df3aad9 100755 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,7 +5,6 @@ require 'action_controller' require 'action_controller/test_case' RSpec.configure do |config| - config.treat_symbols_as_metadata_keys_with_true_values = true config.expect_with(:rspec) {|c| c.syntax = :expect} config.order = :random config.mock_with :rspec do |mocks|