Sha256: 18b17d80de4382ffe1debe00e7dfdcea55ccfde038137149d37fabcdd23f1a5f

Contents?: true

Size: 300 Bytes

Versions: 6

Compression:

Stored size: 300 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

6 entries across 6 versions & 1 rubygems

Version Path
dynamic_controller-0.0.8 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.7 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.6 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.5 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.4 spec/custom_responder_format_spec.rb
dynamic_controller-0.0.3 spec/custom_responder_format_spec.rb