࣮ߦ(RED)
$ bin/rspec spec/models/user_spec.rb
User
#register_user
trueΛฦ͢͜ͱ
usersςʔϒϧʹσʔλΛՃ͍ͯ͠Δ͜ͱ (FAILED - 1)
Failures:
1) User#register_user usersςʔϒϧʹσʔλΛՃ͍ͯ͠Δ͜ͱ
Failure/Error:
expect {
user.register_user('Ϣʔβʔ໊', '
[email protected]')
}.to change {
described_class.where(name: 'Ϣʔβʔ໊', email: '
[email protected]').exists?
}.from(false).to(true)
expected `described_class.where(name: 'Ϣʔβʔ໊', email: '
[email protected]').exists?` to have changed
from false to true, but did not change
Finished in 2.95 seconds (files took 9.34 seconds to load)
2 examples, 1 failure
Failed examples:
rspec ./spec/models/user_spec.rb:11 # User#register_user usersςʔϒϧʹσʔλΛՃ͍ͯ͠Δ͜ͱ
ࣦഊ͢Δ͜ͱΛ֬ೝ