---
# System prepended metadata

title: rspec
tags: [專案問題解決 分享]

---

---
title:  rspec
tags: 專案問題解決 分享 
---

## <font color=red>**rspec** </font>

Add rspec-rails to both the :development and :test groups of your app’s Gemfile
gem 'rspec-rails', '~> 5.0', '>= 5.0.2'
bundle
rails generate rspec:install
rails generate rspec:model 要測試的model

如果有出錯就裝這個
gem 'rexml'


解決很多警告
bundle update 
bundle clean --force
bundle install