Sha256: 2262c920101ec4e8cf55f495a6937b0fa54bca11b9325798e1c6b7fa30886aca
Contents?: true
Size: 643 Bytes
Versions: 41
Compression:
Stored size: 643 Bytes
Contents
require File.join(File.dirname(__FILE__),'api_helper') describe "RhosyncApiCreateUser" do it_should_behave_like "ApiHelper" it "should create user" do params = {:api_token => @api_token, :attributes => {:login => 'testuser1', :password => 'testpass1'}} post "/api/create_user", params last_response.should be_ok User.load(params[:attributes][:login]).login.should == params[:attributes][:login] User.authenticate(params[:attributes][:login], params[:attributes][:password]).login.should == params[:attributes][:login] @a.users.members.sort.should == [@u.login, params[:attributes][:login]] end end
Version data entries
41 entries across 41 versions & 1 rubygems