mirror of
https://github.com/danbee/slugtastic
synced 2025-03-04 08:49:05 +00:00
First major version release.
This commit is contained in:
parent
80f6a7e0c7
commit
091a455a2a
@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
slugtastic (0.2.0.alpha)
|
slugtastic (0.2.1)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
module Slugtastic
|
module Slugtastic
|
||||||
VERSION = "0.2.1"
|
VERSION = "1.0.0"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -11,6 +11,10 @@ describe Slugtastic do
|
|||||||
Slugtastic.generate_slug("A simple string.").should eq "a_simple_string"
|
Slugtastic.generate_slug("A simple string.").should eq "a_simple_string"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "generates a slug from a string with numbers" do
|
||||||
|
Slugtastic.generate_slug("Slugtastic was built in 2012.").should eq "slugtastic_was_built_in_2012"
|
||||||
|
end
|
||||||
|
|
||||||
it "handles strings with hypens in them" do
|
it "handles strings with hypens in them" do
|
||||||
Slugtastic.generate_slug("A string - with Hyphens").should eq "a_string_-_with_hyphens"
|
Slugtastic.generate_slug("A string - with Hyphens").should eq "a_string_-_with_hyphens"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user