Skip to content

Commit fbfde16

Browse files
committed
Use keyword arg
1 parent 1b4dc8d commit fbfde16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/babosa_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@
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

0 commit comments

Comments
 (0)