1Caojx 2018-12-16 20:45:34 +08:00
2Caojx 2018-12-16 20:58:16 +08:00
✘ [email protected] ~/Ruby/hello_rails master rake test
/Users/caojianxiong/Ruby/hello_rails/db/schema.rb doesn't exist yet. Run `rails db:migrate` to create it, then try again. If you do not intend to use a database, you should instead alter /Users/caojianxiong/Ruby/hello_rails/config/application.rb to limit the frameworks that will be loaded.
test_should_say_hello_in_json is already defined in SayControllerTest
/Users/caojianxiong/Ruby/hello_rails/test/controllers/say_controller_test.rb:3:in `<top (required)>'
Tasks: TOP => test
(See full trace by running task with --trace)
3zhaolion 2018-12-16 21:09:25 +08:00 1
先配置一下 config/database.yaml，然后执行 `rails db:migrate`