10 lines
183 B
Ruby
10 lines
183 B
Ruby
require "spec_helper"
|
|
|
|
describe Comment do
|
|
it "should get a short id" do
|
|
c = Comment.make!(:comment => "hello")
|
|
|
|
c.short_id.should match(/^\A[a-zA-Z0-9]{1,10}\z/)
|
|
end
|
|
end
|