Sha256: 2dfafbd024e9d8b1e882f168f2d405a5696716ef9511aed085e758c8046078d9

Contents?: true

Size: 675 Bytes

Versions: 2

Compression:

Stored size: 675 Bytes

Contents

require File.dirname(__FILE__) + '/../../test_helper'
require 'admin/export_controller'

# Re-raise errors caught by the controller.
class Admin::ExportController; def rescue_action(e) raise e end; end

class Admin::ExportControllerTest < Test::Unit::TestCase
  fixtures :users, :pages
  test_helper :login
  
  def setup
    @controller = Admin::ExportController.new
    @request    = ActionController::TestRequest.new
    @response   = ActionController::TestResponse.new
    login_as(:developer)
  end

  def test_yaml
    get :yaml
    assert_kind_of Hash, YAML.load(@response.body)
    assert_equal 'text/yaml; charset=utf-8', @response.headers['Content-Type']
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
radiant-0.6.3 test/functional/admin/export_controller_test.rb
radiant-0.6.4 test/functional/admin/export_controller_test.rb