mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
12 lines
268 B
Ruby
12 lines
268 B
Ruby
require "spec_helper"
|
|
|
|
describe Redistat::Label do
|
|
|
|
it "should initialize and SHA1 hash the label name" do
|
|
name = "/about/us"
|
|
label = Redistat::Label.new(name)
|
|
label.name.should == name
|
|
label.hash.should == Digest::SHA1.hexdigest(name)
|
|
end
|
|
|
|
end |