# Spec example description

**URL:** <https://forum.crystal-lang.org/t/spec-example-description/1296>\
**Category:** Help & Support\
**Created:** [October 27, 2019, 11:46am UTC](https://forum.crystal-lang.org/t/spec-example-description/1296 "2019-10-27T11:46:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![carcinocron](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/carcinocron/32/1022_2.png) [@carcinocron](https://forum.crystal-lang.org/u/carcinocron)\
**Post date:** [April 5, 2020, 5:20pm UTC](https://forum.crystal-lang.org/t/spec-example-description/1296/8 "2020-04-05T17:20:47Z")

</div>

I need this. I need to use Spec::Item.description for the name of each test’s snapshot file. Otherwise each test will have 2 copies of the description text.

bad:

```auto
  it "lists some JSON for user" do
    res = process_request req
    res.body.should match_snapshot "Http/Posts/List/lists some JSON for user"
  end

```

good:

```auto
  it "lists some JSON for user" do
    res = process_request req
    res.body.should match_snapshot "Http/Posts/List/#{self.description}"
  end

```

---

_[View the full topic](https://forum.crystal-lang.org/t/spec-example-description/1296)._
