spec/api/create_user_spec.rb in rhosync-2.0.0.beta1 vs spec/api/create_user_spec.rb in rhosync-2.0.0.beta2
- old
+ new
@@ -2,10 +2,10 @@
describe "RhosyncApiCreateUser" do
it_should_behave_like "ApiHelper"
it "should create user as admin" do
- params = {:app_name => @test_app_name, :api_token => @api_token,
+ 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],
\ No newline at end of file