mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Set up slug.rb for obvious method extractions.
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
# encoding: utf-8
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
require 'slug'
|
||||
|
||||
describe Slug do
|
||||
|
||||
|
||||
it 'replaces spaces with hyphens' do
|
||||
Slug.for("hello world").should == 'hello-world'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user