Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We decided to not override inspect at all.

  • Loading branch information...
commit 329fdfe8310ae1af2754b53723d94ae20c2a7612 1 parent d21aee7
@ugisozols ugisozols authored
View
1  core/lib/refinery/menu.rb
@@ -21,7 +21,6 @@ def roots
def to_s
items.map(&:title).join(' ')
end
- alias :inspect :to_s
# The delegation is specified so crazily so that it works on 1.8.x and 1.9.x
delegate *((Array.instance_methods - Object.instance_methods) << {:to => :items})
View
3  core/spec/lib/refinery/menu_spec.rb
@@ -27,10 +27,9 @@ module Refinery
end
end
- describe '#to_s & #inspect' do
+ describe '#to_s' do
it 'returns string of joined page titles' do
menu.to_s.should eq('test1 test2')
- menu.inspect.should eq('test1 test2')
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.