Sha256: 623a842ae1ca955bb72ace7006cda839b76bd111a2017554042ae2a0bade1307

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

require 'spec_helper'

describe 'Custom responder format' do

  it 'Respond only to HTML and JSON' do
    AllActionsController.responder_formats.should eq [:html, :json]
  end

  it 'Respond to XLS' do
    XlsResponderController.responder_formats.should eq [:html, :json, :xls]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_controller-0.0.12 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.11 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.10 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.9 spec/custom_responder_format_spec.rb