Sha256: 0a363c94e0d7e3f6110a41f5374fb1f24ee610ef831ab3410aeac5ae8ef5dc40

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 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
  
  def setup
    @controller = ExportController.new
    @request    = ActionController::TestRequest.new
    @response   = ActionController::TestResponse.new
    @request.session[:user] = users(:developer)
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-0.5.0 test/functional/admin/export_controller_test.rb
radiant-0.5.1 test/functional/admin/export_controller_test.rb
radiant-0.5.2 test/functional/admin/export_controller_test.rb