Test Smells

Flashcard 1 of 5

Do you see a test smell in the following code?

describe User do
  let(:user) { FactoryGirl.create(:user, first_name: "John") }

  describe "#full_name" do
    it "returns the user's concatenated first and last name" do
      expect(user.full_name).to(
        eq("John Smith")
      )
    end
  end
end

Answer:

Reveal Answer