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