mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08: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