Test for Asciicast.generate_secret_token

This commit is contained in:
Marcin Kulik 2015-04-26 13:55:15 +00:00
parent 3f32ee0ef6
commit 510f167680

View File

@ -41,6 +41,12 @@ describe Asciicast do
end
end
describe '.generate_secret_token' do
subject { Asciicast.generate_secret_token }
it { should match(/^[a-z0-9]{25}$/) }
end
describe '.for_category_ordered' do
subject { described_class.for_category_ordered(category, order) }