Sha256: 964aba56cf9645fbb5d26b3d194ecaee9ab2f44881ebf8ef17ea6a337281a116

Contents?: true

Size: 387 Bytes

Versions: 49

Compression:

Stored size: 387 Bytes

Contents

require File.join(File.dirname(__FILE__),'spec_helper')

describe "ApiToken" do
  it_should_behave_like "SpecBootstrapHelper"
  it_should_behave_like "SourceAdapterHelper"
  
  it "should generate api token with user" do
    token = ApiToken.create(:user_id => @u.id)
    token.value.length.should == 32
    token.user_id.should == @u.id
    token.user.login.should == @u.login
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 spec/api_token_spec.rb
rhosync-2.1.18.beta1 spec/api_token_spec.rb
rhosync-2.1.17 spec/api_token_spec.rb
rhosync-2.1.17.beta7 spec/api_token_spec.rb
rhosync-2.1.17.beta6 spec/api_token_spec.rb
rhosync-2.1.17.beta5 spec/api_token_spec.rb
rhosync-2.1.17.beta4 spec/api_token_spec.rb
rhosync-2.1.17.beta3 spec/api_token_spec.rb
rhosync-2.1.17.beta2 spec/api_token_spec.rb
rhosync-2.1.17.beta1 spec/api_token_spec.rb
rhosync-2.1.16 spec/api_token_spec.rb
rhosync-2.1.15 spec/api_token_spec.rb
rhosync-2.1.14 spec/api_token_spec.rb
rhosync-2.1.13 spec/api_token_spec.rb
rhosync-2.1.12 spec/api_token_spec.rb
rhosync-2.1.11 spec/api_token_spec.rb
rhosync-2.1.10 spec/api_token_spec.rb
rhosync-2.1.7 spec/api_token_spec.rb
rhosync-2.1.6 spec/api_token_spec.rb
rhosync-2.1.3 spec/api_token_spec.rb