
- Re-factor - Remove code for notifications - Remove addons - Remove travis-core gem. - Ignore logs directory only - Move core tests to spec/lib
14 lines
294 B
Ruby
14 lines
294 B
Ruby
describe Token do
|
|
it 'generate_token sets the token to a 20 character value' do
|
|
Token.new.send(:generate_token).length.should == 20
|
|
end
|
|
|
|
it 'does not generate new token on save' do
|
|
token = Token.create!
|
|
|
|
expect {
|
|
token.save
|
|
}.to_not change { token.token }
|
|
end
|
|
end
|