tagify_string 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tagify_string/version.rb +1 -1
- data/spec/models/string_spec.rb +4 -0
- metadata +1 -1
data/spec/models/string_spec.rb
CHANGED
@@ -40,6 +40,10 @@ describe "String" do
|
|
40
40
|
"@%%@+_)(*&^%$@!".tagify.should eq ""
|
41
41
|
end
|
42
42
|
|
43
|
+
it "@\#@\#\$@# 22353 family Cádiz" do
|
44
|
+
"@\#@\#\$@# 22353 family Cádiz".tagify.should eq "22353-FAMILY-CADIZ"
|
45
|
+
end
|
46
|
+
|
43
47
|
context "with a bang" do
|
44
48
|
it "changes the value of the string" do
|
45
49
|
s = "a,b".tagify!
|