Sha256: 7ee592cc916eb9f93a3280ea20d05322137767d7441732f4736d15ec8300157e

Contents?: true

Size: 402 Bytes

Versions: 29

Compression:

Stored size: 402 Bytes

Contents

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

describe "ApiToken" do
  it_behaves_like "SharedRhoconnectHelper", :rhoconnect_data => true do
    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
      token.delete
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rhoconnect-4.0.4 spec/api_token_spec.rb
rhoconnect-4.0.3 spec/api_token_spec.rb
rhoconnect-4.0.2 spec/api_token_spec.rb
rhoconnect-4.0.1 spec/api_token_spec.rb
rhoconnect-4.0.0 spec/api_token_spec.rb
rhoconnect-4.0.0.beta.24 spec/api_token_spec.rb
rhoconnect-3.4.5 spec/api_token_spec.rb
rhoconnect-4.0.0.beta.10 spec/api_token_spec.rb
rhoconnect-4.0.0.beta.12 spec/api_token_spec.rb
rhoconnect-3.4.4 spec/api_token_spec.rb
rhoconnect-3.4.3 spec/api_token_spec.rb
rhoconnect-3.4.2 spec/api_token_spec.rb
rhoconnect-3.3.6 spec/api_token_spec.rb
rhoconnect-3.3.5 spec/api_token_spec.rb
rhoconnect-3.3.4 spec/api_token_spec.rb
rhoconnect-3.3.3 spec/api_token_spec.rb
rhoconnect-3.3.2 spec/api_token_spec.rb
rhoconnect-3.3.1 spec/api_token_spec.rb
rhoconnect-3.3.1.beta4 spec/api_token_spec.rb
rhoconnect-3.3.1.beta3 spec/api_token_spec.rb