Skip to content

Commit f26e18c

Browse files
committed
WIP
1 parent 88713b1 commit f26e18c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/dumpcar/util_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
RSpec.describe Dumpcar::Util do
2+
describe "calculate_dump_description" do
3+
[
4+
["name with upper and down case", "An item with UPPER and downcase", "an-item-with-upper-and-downcase"],
5+
["name with two spaces", "An item with spaces", "an-item-with-spaces"],
6+
["name with space at front and end", " An item with Space at front and end ", "an-item-with-space-at-front-and-end"],
7+
["name with space with doublespace and dash", "An -item with space and Dash", "an-item-with-space-and-dash"]
8+
].each do |title, input, expected|
9+
it "properly handles #{title}" do
10+
expect(described_class.calculate_dump_description(input)).to eq expected
11+
end
12+
end
13+
end
14+
end

0 commit comments

Comments
 (0)