Sha256: bf6ad16d8a02c935a22b89ede244af0aa9c920938007e8d5f2ea337fd9072ba3

Contents?: true

Size: 632 Bytes

Versions: 2

Compression:

Stored size: 632 Bytes

Contents

require File.join(File.dirname(__FILE__), 'helpers', 'test_helper')
require File.join(File.dirname(__FILE__), 'helpers', 'functional_test_helper')

ActionController::Routing::Routes.draw do |map|
  map.connect ':controller/:action/:id'
end

class NotesControllerFunctionalTest < ActionController::TestCase
  fixtures :all
  
  def setup    
    @controller = NotesController.new()
    @controller.request = @request = ActionController::TestRequest.new
    @response = ActionController::TestResponse.new    
  end

  def test_render_with_an_empty_params_hash_should_not_blow_up
    get :index
    assert_response :success
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restfulx-1.3.1 test/rails/test_notes_controller_functional.rb
restfulx-1.3.0 test/rails/test_notes_controller_functional.rb