Challenge Solution: Unique Title for Blog Posts
Let’s look at the solution to the unique title for blog posts challenge.
We'll cover the following...
Let's look at the solution to the challenge.
--require spec_helper
Solution for the unique title for blog posts challenge
Explanation
Let's break down the solution implemented above.
Define the test
We define the test in spec/models/blog_post_spec.rb
.
The test scenario is split into two steps.
The first test checks for ...