Skip to content

Commit

Permalink
Update part1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtrilling committed Jul 15, 2015
1 parent aea2d0f commit e80eada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple_bdd/part1.md
Expand Up @@ -52,7 +52,7 @@ Each step matches to one method definition. The method body contains a Capybara
let(:item_text) { Faker::Lorem.sentence }
```

You can use let just like in other RSpec specs. Every scenario is run within its own class context, so you can use instance variables to share data between steps, but let definitions are easier to keep track of when dealing with shared step definitions.
You can use `let` just like in other RSpec specs. Every scenario is run within its own class context, so you can use instance variables to share data between steps, but `let` definitions are easier to keep track of when dealing with shared step definitions.

```ruby
def i_add_a_new_item
Expand Down

0 comments on commit e80eada

Please sign in to comment.