1Caojx 364 天前
2Caojx 364 天前
✘ [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 364 天前 ♥ 1
先配置一下 config/database.yaml，然后执行 `rails db:migrate`