1
Caojx OP 第三条测试,我传参不对
|
2
Caojx OP 这是报错
✘ caojianxiong@MacBook-Air ~/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. rake aborted! test_should_say_hello_in_json is already defined in SayControllerTest /Users/caojianxiong/Ruby/hello_rails/test/controllers/say_controller_test.rb:12:in `<class: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) |
3
zhaolion 2018-12-16 21:09:25 +08:00 1
先配置一下 config/database.yaml,然后执行 `rails db:migrate`
|