mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
No more RSpec warnings
This commit is contained in:
parent
33790e63ff
commit
ba429074d5
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ module AwesomePrint
|
||||||
formatter = AwesomePrint::Formatter
|
formatter = AwesomePrint::Formatter
|
||||||
formatter.send(:include, mod)
|
formatter.send(:include, mod)
|
||||||
|
|
||||||
hook = mod.name.gsub(/^.*::/, "").gsub!(/(.)([A-Z])/, '\1_\2').downcase
|
hook = mod.name.gsub(/^.*::/, "").gsub(/(.)([A-Z])/, '\1_\2').downcase
|
||||||
formatter.send(:alias_method, :"cast_without_#{hook}", :cast)
|
formatter.send(:alias_method, :"cast_without_#{hook}", :cast)
|
||||||
formatter.send(:alias_method, :cast, :"cast_with_#{hook}")
|
formatter.send(:alias_method, :cast, :"cast_with_#{hook}")
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe "AwesomePrint logging extensions" do
|
||||||
|
|
||||||
describe "ap method" do
|
describe "ap method" do
|
||||||
it "should awesome_inspect the given object" do
|
it "should awesome_inspect the given object" do
|
||||||
object = mock
|
object = double
|
||||||
object.should_receive(:ai)
|
object.should_receive(:ai)
|
||||||
@logger.ap object
|
@logger.ap object
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue