--- 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
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up