Sha256: 2a57b545ed2e85d73e803ebb04e5a694f89311281f0f8e3ec21f8958682ad682

Contents?: true

Size: 749 Bytes

Versions: 5

Compression:

Stored size: 749 Bytes

Contents

require File.dirname(__FILE__) + '/../../test_helper'
require File.dirname(__FILE__) + '/../../functional/events/events_base_test'
require '<%= parsed_controller_name.underscore -%>_controller'

# Re-raise errors caught by the controller.
class <%= parsed_controller_name -%>; def rescue_action(e) raise e end; end

class <%= parsed_event_name.camelize -%>Test < EventBaseTest
  
  fixtures :users
  
  def setup
    @controller = <%= parsed_controller_name.camelize-%>.new
    @request = ActionController::TestRequest.new
    @response = ActionController::TestResponse.new
    
    prepare
    load_event "app/events/<%= parsed_event_name-%>_event.rb"
    emulate_login
  end
  
  # Put actual tests here
  def test_true
    assert true
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
enhanced_hooks-0.5 lib/generators/enhanced_hooks/templates/functional_test.rb
event_machine-0.4.1 lib/generators/event_machine/templates/functional_test.rb
event_machine-0.4.0 lib/generators/event_machine/templates/functional_test.rb
event_machine-0.3.1 generators/event_machine/templates/functional_test.rb
event_machine-0.3.0 generators/event_machine/templates/functional_test.rb