```ruby
require 'chefspec'
require 'chefspec/berkshelf'

require 'rundeck'

RSpec.configure do |config|
  config.platform = 'centos'
  config.version  = '7.2.1511'
end

def mock_web_xml(role_name = 'user', timeout = 30)
  before(:each) do
    allow(::File).to receive(:new)
      .with('/var/lib/rundeck/exp/webapp/WEB-INF/web.xml')
      .and_return(<<XML)
<web-app>
  <security-role>
    <role-name>#{role_name}</role-name>
  </security-role>
  <session-config>
    <session-timeout>#{timeout}</session-timeout>
  </session-config>
</web-app>
XML
  end
end
```

Fix Chefspecs by bumping centos platform version
user
```ruby
require 'chefspec'
require 'chefspec/berkshelf'

require 'rundeck'

RSpec.configure do |config|
  config.platform = 'centos'
  config.version  = '7.5.1804'
end

def mock_web_xml(role_name = 'user', timeout = 30)
  before(:each) do
    allow(::File).to receive(:new)
      .with('/var/lib/rundeck/exp/webapp/WEB-INF/web.xml')
      .and_return(<<XML)
<web-app>
  <security-role>
    <role-name>#{role_name}</role-name>
  </security-role>
  <session-config>
    <session-timeout>#{timeout}</session-timeout>
  </session-config>
</web-app>
XML
  end
end
```
assistant