Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/app/views/refinery/admin/_error_messages.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ul>
<% if defined?(include_object_name) and include_object_name %>
<% object.errors.each do |error| %>
<li><%= error.message %></li>
<li><%= error.full_message %></li>
<% end %>
<% else %>
<% object.errors.each do |error| %>
Expand Down
8 changes: 8 additions & 0 deletions pages/spec/system/refinery/admin/pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ module Admin

expect(page).to have_content("'Parent page' was successfully added.")
end

it "names the field in validation errors" do
visit refinery.new_admin_page_path

click_button "Save"

expect(page).to have_content("Title can't be blank")
end
end

describe "edit/update" do
Expand Down
Loading