Skip to content

Commit

Permalink
Remove warnings that fail the build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Aug 24, 2020
1 parent 412ea1f commit 6a0e436
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 83 deletions.
1 change: 0 additions & 1 deletion lib/shoulda/matchers/independent.rb
@@ -1,5 +1,4 @@
require 'shoulda/matchers/independent/delegate_method_matcher'
require 'shoulda/matchers/independent/delegate_method_matcher/stubbed_target'
require 'shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error'

module Shoulda
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions spec/unit/shoulda/matchers/doublespeak/double_spec.rb
Expand Up @@ -233,6 +233,7 @@ module Shoulda::Matchers::Doublespeak
doubles[0].activate

was_called = false
klass.__send__(:remove_method, method_name)
klass.__send__(:define_method, method_name) do
was_called = true
end
Expand Down

This file was deleted.

Expand Up @@ -418,7 +418,7 @@ def country
person = Person.new

expect {
expect(person).to delegate_method(:hello). to(:country).with_prefix
expect(person).to delegate_method(:hello).to(:country).with_prefix
}.to fail_with_message(message)
end
end
Expand Down Expand Up @@ -592,7 +592,9 @@ def country; end
MESSAGE

expectation = lambda do
expect(person).to delegate_method(:hello).to(:country).allow_nil
silence_warnings do
expect(person).to delegate_method(:hello).to(:country).allow_nil
end
end

expect(&expectation).to fail_with_message(message)
Expand Down

0 comments on commit 6a0e436

Please sign in to comment.