Sha256: 1d199d31be144883a6f40d7d2490f65540c702fb0d352fbb7eb0a0fb27b55b43

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

require 'spec_helper'
require 'nokogiri'

describe 'ChefRundeck' do
  before do
    # setup for the following tests
    ChefRundeck.config_file = "#{ENV['TRAVIS_BUILD_DIR']}/spec/support/client.rb"
    ChefRundeck.username = ENV['USER']
    ChefRundeck.web_ui_url = 'https://manage.opscode.com'
    ChefRundeck.configure
  end
  it 'fetch to root should return 200' do
    get '/' 
    last_response.should be_ok
  end
  it 'fetched document should be Nokogiri-parseable XML document' do
    get '/'
    Nokogiri::XML(last_response.body).document.should be_true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-rundeck-1.0.1 spec/chef-rundeck_spec.rb
chef-rundeck-1.0.0 spec/chef-rundeck_spec.rb