Test Smells

Flashcard 4 of 5

This next smell has hints of rose and lilac, which make it rather tempting:

scenario "an admin creates a new project" do
  admin = create(:admin)
  sign_in_as(admin)
  create_new_project(title: "Secret Plans")

  expect(admin.projects.last.title).to eq("Secret Plans")
end

Answer:

Reveal Answer