Fix WikiController test_update_stale_page_should_not_raise_an_error

The test didn't specify the version it depended on, so its assertion failed.

I have no idea why the second changed assertion ever worked, since the
journal's version should never change. This restores the line as it
was before commit c25bbee177.
pull/1224/head
Michael Frister 11 years ago
parent 68c7f933af
commit b1b2adcae9
  1. 3
      test/functional/wiki_controller_test.rb

@ -180,6 +180,7 @@ class WikiControllerTest < ActionController::TestCase
def test_update_stale_page_should_not_raise_an_error
journal = FactoryGirl.create :wiki_content_journal,
journable_id: 2,
version: 1,
data: FactoryGirl.build(:journal_wiki_content_journal,
text: "h1. Another page\n\n\nthis is a link to ticket: #2")
@request.session[:user_id] = 2
@ -214,7 +215,7 @@ class WikiControllerTest < ActionController::TestCase
c.reload
assert_equal 'Previous text', c.text
assert_equal journal.version, c.version
assert_equal 2, c.version
end
def test_preview

Loading…
Cancel
Save