File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 138138 expect ( "¿¿¿hello... world???" . to_slug . to_ruby_method ) . to eql ( "hello_world?" )
139139 expect ( "カタカナ: katakana is über cool" . to_slug . to_ruby_method ) . to eql ( "katakana_is_uber_cool" )
140140 expect ( "カタカナ: katakana is über cool!" . to_slug . to_ruby_method ) . to eql ( "katakana_is_uber_cool!" )
141- expect ( "カタカナ: katakana is über cool" . to_slug . to_ruby_method ( false ) ) . to eql ( "katakana_is_uber_cool" )
141+ expect ( "カタカナ: katakana is über cool" . to_slug . to_ruby_method ( allow_bangs : false ) ) . to eql ( "katakana_is_uber_cool" )
142142 end
143143
144144 it "should optionally remove trailing punctuation" do
145- expect ( "¿¿¿hello... world???" . to_slug . to_ruby_method ( false ) ) . to eql ( "hello_world" )
145+ expect ( "¿¿¿hello... world???" . to_slug . to_ruby_method ( allow_bangs : false ) ) . to eql ( "hello_world" )
146146 end
147147
148148 it "should raise an error when it would generate an impossible method name" do
You can’t perform that action at this time.
0 commit comments