Skip to content

Commit

Permalink
Resolving some RSpec version issues / deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Mar 27, 2015
1 parent d877f84 commit 8ca9198
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/draper/version.rb
@@ -1,3 +1,3 @@
module Draper
VERSION = "2.0.0"
VERSION = "2.1.0"
end
8 changes: 4 additions & 4 deletions spec/draper/decorator_spec.rb
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down
1 change: 0 additions & 1 deletion spec/dummy/spec/spec_helper.rb
Expand Up @@ -3,7 +3,6 @@
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
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -5,7 +5,6 @@
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|
Expand Down

0 comments on commit 8ca9198

Please sign in to comment.