鉴于我Personable在我的Rails 4应用程序中有一个问题有一个full_name方法,我将如何使用RSpec进行测试?
Personable
full_name
关注/ personable.rb
module Personable extend ActiveSupport::Concern def full_name "#{first_name} #{last_name}" end end
testing rspec ruby-on-rails
rspec ×1
ruby-on-rails ×1
testing ×1