diff options
Diffstat (limited to 'test/controllers')
| -rw-r--r-- | test/controllers/revisions_controller_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/controllers/revisions_controller_test.rb b/test/controllers/revisions_controller_test.rb index bb21ea68..8311735c 100644 --- a/test/controllers/revisions_controller_test.rb +++ b/test/controllers/revisions_controller_test.rb | |||
| @@ -33,7 +33,7 @@ class RevisionsControllerTest < ActionController::TestCase | |||
| 33 | login_as :quentin | 33 | login_as :quentin |
| 34 | get :show, params: { :node_id => @node.id, :id => @node.pages.last.id } | 34 | get :show, params: { :node_id => @node.id, :id => @node.pages.last.id } |
| 35 | assert_response :success | 35 | assert_response :success |
| 36 | assert_select ".layout_row_label", "Body" | 36 | assert_select ".layout_row_label", Page.human_attribute_name(:body) |
| 37 | assert_select ".layout_row_content", {:count => 1, :text => "second"} | 37 | assert_select ".layout_row_content", {:count => 1, :text => "second"} |
| 38 | end | 38 | end |
| 39 | 39 | ||
| @@ -146,7 +146,7 @@ class RevisionsControllerTest < ActionController::TestCase | |||
| 146 | 146 | ||
| 147 | post(:diff, params: { :node_id => @node.id, :start_revision => "head", :end_revision => "draft" }) | 147 | post(:diff, params: { :node_id => @node.id, :start_revision => "head", :end_revision => "draft" }) |
| 148 | assert_response :success | 148 | assert_response :success |
| 149 | assert_select "a", "Side by side" | 149 | assert_select "a", I18n.t("revisions.side_by_side") |
| 150 | end | 150 | end |
| 151 | 151 | ||
| 152 | test "diffing two revisions also shows tag, template, and asset changes" do | 152 | test "diffing two revisions also shows tag, template, and asset changes" do |
| @@ -157,9 +157,9 @@ class RevisionsControllerTest < ActionController::TestCase | |||
| 157 | 157 | ||
| 158 | post(:diff, params: { :node_id => @node.id, :start_revision => @node.pages.first.revision, :end_revision => @node.pages.last.revision }) | 158 | post(:diff, params: { :node_id => @node.id, :start_revision => @node.pages.first.revision, :end_revision => @node.pages.last.revision }) |
| 159 | assert_response :success | 159 | assert_response :success |
| 160 | assert_select "h3", "Tags" | 160 | assert_select "h3", Page.human_attribute_name(:tag_list) |
| 161 | assert_select "h3", "Template" | 161 | assert_select "h3", Page.human_attribute_name(:template_name) |
| 162 | assert_select "h3", "Assets" | 162 | assert_select "h3", Page.human_attribute_name(:assets) |
| 163 | end | 163 | end |
| 164 | 164 | ||
| 165 | test "revisions#index links back to the node" do | 165 | test "revisions#index links back to the node" do |
