Skip to content

Unable to use the word "example" in an example #410

@dchelimsky

Description

@dchelimsky

Examples and example groups are domain concepts in RSpec, so I want to be able to use those terms in its docs. When I wrote this:

    # @example Hooks
    #     RSpec.configure do |c|
    #       c.before(:suite) { establish_connection }
    #       c.before(:each)  { log_in_as :authorized }
    #       c.around(:each)  { |example| Database.transaction(&example) }
    #     end

I got this output:

output

The HTML looks like this:

<span class='id example'>example</span>

I think the example css class is the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions