We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class Spinach::FeatureSteps include FactoryBot::Syntax::Methods end
FactoryBot::Syntax::Methods
Including FactoryBot::Syntax::Methods gives you access to build, build_list, create, create_list, and attributes_for directly in your tests, such as:
build
build_list
create
create_list
attributes_for
step "a user with 2 articles" do @user = create(:user, articles: build_list(:article, 2)) # not FactoryBot.create or FactoryBot.build_list end