Fixing broken test
| 176 | assert_tag :tag => 'input', :attributes => { :type => 'text', | assert_tag :tag => 'input', :attributes => { :type => 'text', | 176 |
|---|---|---|---|
| 177 | :value => 'Brand new page' } | :value => 'Brand new page' } | 177 |
| 178 | end | end | 178 |
| 179 | 179 | ||
| 180 | def test_shows_page_title_with_page_title_class | def test_shows_page_title_with_page_title_class | 180 |
| 181 | non_matching_title_page = pages('non_matching_title_page') | non_matching_title_page = pages('non_matching_title_page') | 181 |
| 182 | get :show, :page_name => pages('test_page').name | get :show, :page_name => pages('test_page').name | 182 |
| 183 | assert_tag :tag => 'span', :content => 'Test page', | assert_tag :h1, :content => 'Test page' | 183 |
| 184 | :attributes => { :class => 'page-title' } | ||
| 185 | 184 | ||
| 186 | get :show, :page_name => non_matching_title_page.name | get :show, :page_name => non_matching_title_page.name | 185 |
| 187 | assert_tag :tag => 'span', :content => non_matching_title_page.title, | assert_tag :h1, :content => non_matching_title_page.title | 186 |
| 188 | :attributes => { :class => 'page-title' } | ||
| 189 | end | end | 187 |
| 190 | 188 | ||
| 191 | def test_saves_last_editor_and_modification_date | def test_saves_last_editor_and_modification_date | 189 |
| 192 | log_as 'john' | log_as 'john' | 190 |
| 193 | 191 |