thoughtbot / factory_bot

A library for setting up Ruby objects as test data.

Home Page:https://thoughtbot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with links on factory reference page

elasticspoon opened this issue · comments

Description

Links within the docs for the factory reference: https://github.com/thoughtbot/factory_bot/blob/main/docs/src/ref/factory.md are broken.

Reproduction Steps

Expected behavior

It should take you to https://github.com/thoughtbot/factory_bot/blob/main/docs/src/ref/add_attribute.md

Actual behavior

Instead it takes you to https://github.com/thoughtbot/factory_bot/blob/main/docs/src/ref/ref/add_attribute.md, which is a broken link.

I believe the markdown links are incorrect.

## Block

You can use the block to define your factory. Within here you have access to the following methods:

- [`add_attribute`](ref/add_attribute.md)
- [`association`](ref/association.md)
- [`sequence`](ref/sequence.md)
- [`trait`](ref/trait.md)

should be

## Block

You can use the block to define your factory. Within here you have access to the following methods:

- [`add_attribute`](add_attribute.md)
- [`association`](association.md)
etc...