mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Fix the last test failing on PgSQL by making sure we're editing an active todo when testing notes
This commit is contained in:
parent
41c9d3fb18
commit
de25e989db
1 changed files with 1 additions and 2 deletions
|
|
@ -480,7 +480,6 @@ class TodosControllerTest < ActionController::TestCase
|
|||
login_as(:admin_user)
|
||||
get :index, params: { :format => "rss" }
|
||||
assert_equal 'application/rss+xml', @response.media_type
|
||||
# puts @response.body
|
||||
|
||||
assert_select 'rss[version="2.0"]' do
|
||||
assert_select 'channel' do
|
||||
|
|
@ -996,7 +995,7 @@ class TodosControllerTest < ActionController::TestCase
|
|||
|
||||
def test_format_note
|
||||
login_as(:admin_user)
|
||||
todo = users(:admin_user).todos.first
|
||||
todo = users(:admin_user).todos.where("state='active'").first
|
||||
todo.notes = "Normal *bold* http://foo.bar/baz"
|
||||
todo.save!
|
||||
get :index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue