lib/auth_helpers/spec/rememberable.rb in josevalim-auth_helpers-0.1.1 vs lib/auth_helpers/spec/rememberable.rb in josevalim-auth_helpers-0.1.2

- old
+ new

@@ -15,9 +15,15 @@ it 'should set the remember me token creation date' do @rememberable.remember_me! @rememberable.token_expires_at.should_not be_nil end + it 'should return a remember_me cookie hash' do + @rememberable.remember_me! + @rememberable.remember_me_cookie_hash[:value].should == @rememberable.token + @rememberable.remember_me_cookie_hash[:expires].should == @rememberable.token_expires_at + end + it 'should forget the remember me token' do @rememberable.remember_me! @rememberable.forget_me! @rememberable.token.should be_nil end