08 Jul 2012, 09:58
Generic-user-small

Andrey Botalov (2 posts)

Given I put sqlite3.dll and sqlite3.exe into bin directory of Ruby installation
And I’ve installed sqlite3 gem using

gem install sqlite3

And I wrote code in the beginning of chapter 10 before first run of Cucumber
But I don’t have bank.db file in /db directory
When I run cucumber
Then I get error ”””

  Given my account has been credited with $100            # features/step_definitions/account_steps.rb:1
    Could not find table 'accounts' (ActiveRecord::StatementInvalid)
    ./features/support/world_extensions.rb:14:in `new'
    ./features/support/world_extensions.rb:14:in `my_account'
    ./features/step_definitions/account_steps.rb:2:in `/^my account has been credited with (\$(?:\d+))$/'
    features\cash_withdrawal.feature:3:in `Given my account has been credited with $100'
  
””“

How can I solve it?

08 Jul 2012, 10:47
Generic-user-small

Andrey Botalov (2 posts)

I’ve just runned

path/to/project/db/bank.db
and bank.db was created.
But when I run cucumber migration doesn’t occur and table isn’t created

09 Jul 2012, 10:09
Avatar_pragsmall

Matt Wynne (83 posts)

You said:

Given I put sqlite3.dll and sqlite3.exe into bin directory of Ruby installation

Please follow the installation instructions in the appendix of the book carefully. If you don’t follow our instructions it’s difficult for us to help you any further.

  You must be logged in to comment