Sha256: 4c38bf9483e68811bc53dd4461f1fc57f2b81f3f7c22d5b0e2a7e96fb182f0e9

Contents?: true

Size: 494 Bytes

Versions: 14

Compression:

Stored size: 494 Bytes

Contents

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

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

14 entries across 14 versions & 1 rubygems

Version Path
rhoconnect-3.1.1 spec/api/admin/api_token_spec.rb
rhoconnect-3.1.0 spec/api/admin/api_token_spec.rb
rhoconnect-3.1.0.beta2 spec/api/admin/api_token_spec.rb
rhoconnect-3.1.0.beta1 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.6 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.5 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.4 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.3 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.2 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.1 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.0 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.0.rc1 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.0.beta3 spec/api/admin/api_token_spec.rb
rhoconnect-3.0.0.beta1 spec/api/admin/api_token_spec.rb