rails 简明教程-单元测试-rspec 入门教程

  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  gem 'rspec-rails', '~> 5.0.0'
end

1.导入gemfille文件
2.执行bundle install 或者 bundle install --without production
3.太麻烦了

你可能感兴趣的:(rails 简明教程-单元测试-rspec 入门教程)