Sha256: 69743d50819cf44d43458d22ef2406c8c6f110cf8917e6d36d003ce93940b9c7
Contents?: true
Size: 582 Bytes
Versions: 27
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe "quby/errors/questionnaire_not_found" do let(:error) { Quby::Questionnaires::Repos::QuestionnaireNotFound.new 'testkey' } it "displays the key of the questionnaire that could not be found" do assign(:error, error) render expect(rendered).to match /testkey/ end it "does not evaluate the questionnaire key as markdown" do error = Quby::Questionnaires::Repos::QuestionnaireNotFound.new "[Evil Link](evil)" assign(:error, error) render expect(rendered).not_to include('<a') end end
Version data entries
27 entries across 27 versions & 1 rubygems