Enclosing the string in quotes stored the quotes in the database:
>>>>>>>
Feature: Users should be able to create a fruit basket
Background: # features/
fruit_basket.feature:3
Given the following fruit_baskets exists: # features/
step_definitions/pickle_steps.rb:14
| fruit_name | fruit_count |
| "banana" | 3 |
| "apple" | 4 |
| "cherry" | 20 |
Scenario: create a fruit basket # features/
fruit_basket.feature:10
Given I retrieve the first fruit_basket # features/
step_definitions/application_steps.rb:1
Then that fruit_basket should have fruit name "banana" # features/
step_definitions/application_steps.rb:5
expected: "banana"
got: "\"banana\"" (using ==)
(RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/application_steps.rb:6:in `/^that
fruit_basket should have fruit name "([^"]*)"$/'
features/fruit_basket.feature:12:in `Then that fruit_basket
should have fruit name "banana"'
Failing Scenarios:
cucumber features/fruit_basket.feature:10 # Scenario: create a fruit
basket
1 scenario (1 failed)
3 steps (1 failed, 2 passed)
0m1.433s