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

Version Path
rhosync-2.1.18.beta2 spec/api/reset_spec.rb
rhosync-2.1.18.beta1 spec/api/reset_spec.rb
rhosync-2.1.17 spec/api/reset_spec.rb
rhosync-2.1.17.beta7 spec/api/reset_spec.rb
rhosync-2.1.17.beta6 spec/api/reset_spec.rb
rhosync-2.1.17.beta5 spec/api/reset_spec.rb
rhosync-2.1.17.beta4 spec/api/reset_spec.rb
rhosync-2.1.17.beta3 spec/api/reset_spec.rb
rhosync-2.1.17.beta2 spec/api/reset_spec.rb
rhosync-2.1.17.beta1 spec/api/reset_spec.rb
rhosync-2.1.16 spec/api/reset_spec.rb
rhosync-2.1.15 spec/api/reset_spec.rb
rhosync-2.1.14 spec/api/reset_spec.rb
rhosync-2.1.13 spec/api/reset_spec.rb
rhosync-2.1.12 spec/api/reset_spec.rb
rhosync-2.1.11 spec/api/reset_spec.rb
rhosync-2.1.10 spec/api/reset_spec.rb
rhosync-2.1.7 spec/api/reset_spec.rb
rhosync-2.1.6 spec/api/reset_spec.rb
rhosync-2.1.3 spec/api/reset_spec.rb