Sha256: becd035dd6cab60eb35c272273ab02cbee58ac313bf693290a31b4cf1c54912f

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

require File.expand_path("../../../spec_helper", __FILE__)

describe Admin::ExportController do
  dataset :users_and_pages
  
  before :each do
    login_as :designer
  end
  
  it "should export a YAML file" do
    get :export
    response.should be_success
    response.content_type.should == "text/yaml"
    YAML.load(response.body).should be_kind_of(Hash)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
radiant-exporter-extension-1.1.0 spec/controllers/admin/export_controller_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radiant-exporter-extension-1.0.3/spec/controllers/admin/export_controller_spec.rb
radiant-exporter-extension-1.0.3 spec/controllers/admin/export_controller_spec.rb
radiant-exporter-extension-1.0.2 spec/controllers/admin/export_controller_spec.rb