mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
fix regressions in cucumber tests. Add basis test for notes page
This commit is contained in:
parent
82bb67f518
commit
e03c521314
3 changed files with 8 additions and 13 deletions
|
|
@ -1,18 +1,14 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
||||
require 'notes_controller'
|
||||
|
||||
# Re-raise errors caught by the controller.
|
||||
class NotesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class NotesControllerTest < ActionController::TestCase
|
||||
|
||||
def setup
|
||||
@controller = NotesController.new
|
||||
request = ActionController::TestRequest.new
|
||||
response = ActionController::TestResponse.new
|
||||
end
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert true
|
||||
def test_get_notes_page
|
||||
login_as :admin_user
|
||||
get :index
|
||||
assert_response 200
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue