1 require File.dirname(__FILE__) + '/../spec_helper'
6 @oauth_nonce = OauthNonce.remember(generate_key, Time.now.to_i)
9 it "should be valid" do
10 @oauth_nonce.should be_valid
13 it "should not have errors" do
14 @oauth_nonce.errors.full_messages.should == []
17 it "should not be a new record" do
18 @oauth_nonce.should_not be_new_record
21 it "should not allow a second one with the same values" do
22 OauthNonce.remember(@oauth_nonce.nonce,@oauth_nonce.timestamp).should == false