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

Version Path
quby-5.4.0 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.3.1 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.3.0 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.2.0 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.1.3 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.1.2 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.1.1 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.1.0 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.5 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.4 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.3 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.2 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.1 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.0 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-4.0.4 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.0.pre4 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.0.pre3 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.0.pre2 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-5.0.0.pre1 spec/views/quby/errors/questionnaire_not_found_spec.rb
quby-4.0.3 spec/views/quby/errors/questionnaire_not_found_spec.rb