Sha256: b9aa615b3faab2b6aa62235119ee78dbc6c393570a32b1bd2304dfbc322b6645
Contents?: true
Size: 821 Bytes
Versions: 41
Compression:
Stored size: 821 Bytes
Contents
require File.join(File.dirname(__FILE__),'api_helper') describe "RhosyncApiReset" do it_should_behave_like "ApiHelper" it "should reset and re-create rhoadmin user with bootstrap" do Store.put_data('somedoc',{'foo'=>'bar'}) post "/api/reset", :api_token => @api_token App.is_exist?(@test_app_name).should == true Store.get_data('somedoc').should == {} User.authenticate('rhoadmin','').should_not be_nil end it "should reset and re-create rhoadmin user with initializer" do Store.put_data('somedoc',{'foo'=>'bar'}) post "/api/reset", :api_token => @api_token App.is_exist?(@test_app_name).should == true Store.get_data('somedoc').should == {} User.authenticate('rhoadmin','').should_not be_nil load File.join(Rhosync.base_directory,@test_app_name+'.rb') end end
Version data entries
41 entries across 41 versions & 1 rubygems