Sha256: ca3af22957c86ba60f9b97efdcb63f653c1d460cb76f31ab26c8f2e73b94afef

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

ENV['RACK_ENV'] = 'test'

require 'model_helper'
require 'rspec'
require 'rack/test'

xdescribe 'The Herald App', :rollback => true do
  include Rack::Test::Methods

  def app
    require 'puppet-herald/app'
    PuppetHerald::App
  end

  it "on '/' redirects to '/app.html'" do
    get '/'
    expect(last_response).not_to be_ok
    expect(last_response.status).to eq(301)
    expect(last_response.header['Location']).to eq('http://example.org/app.html')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-herald-0.1.1 spec/integration/app_spec.rb