Sha256: bf829d4e30095bfd2eb8fd68b865a7231e42bd887940a14c83cc12e06c149d30

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

require 'test_helper'

class TestControllerTest < ActionController::TestCase
  test "should respond to bibtex" do
    get :test, :format => "bibtex", :use_route => :test
    assert_response :success
  end
  test "should respond to bib" do
    get :test, :format => "bib", :use_route => :test
    assert_response :success
  end
  test "should respond to ris" do
    get :test, :format => "ris", :use_route => :test
    assert_response :success
  end
  test "should not respond to arbitrary format" do
    get :test, :format => "csf", :use_route => :test
    assert_response :not_acceptable
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acts_as_citable-3.0.0.pre.alpha test/dummy/test/functional/test_controller_test.rb
acts_as_citable-2.0.2 test/dummy/test/functional/test_controller_test.rb
acts_as_citable-2.0.1 test/dummy/test/functional/test_controller_test.rb
acts_as_citable-2.0.0 test/dummy/test/functional/test_controller_test.rb
acts_as_citable-1.2.0 test/dummy/test/functional/test_controller_test.rb
acts_as_citable-1.1.4 test/dummy/test/functional/test_controller_test.rb
acts_as_citable-1.1.3 test/dummy/test/functional/test_controller_test.rb
acts_as_citable-1.0.1 test/dummy/test/functional/test_controller_test.rb