OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/spec/views/common/validation_error.html.erb_s...

15 lines
433 B

require 'spec_helper'
describe "common/_validation_error" do
let(:error_message) { ["Something went completely wrong!"] }
before do
view.content_for(:error_details, 'Clear this!')
render partial: "common/validation_error.html.erb",
locals: { error_messages: error_message,
object_name: "Test" }
end
it { expect(view.content_for(:error_details)).not_to include('Clear this!') }
end