Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # spec/fixtures/user.yml
- burhanudin:
- first_name: Burhanudin
- last_name: Hakim
- email: burhanudin@me.com
- password: secret
- role: admin
- title: developer
- location: yogyakarta
- galih:
- first_name: Galih
- last_name: Pranowo
- email: galih@me.com
- password: secret
- role: member
- title: unicorn
- location: temanggung
- # spec/model/user_spec.rb
- RSpec.describe User do
- describe "#full_name" do
- it "Concatenate firstname and lastname" do
- user = user(:burhanudin)
- expect(user.full_name).to eq("Burhanudin Hakim")
- end
- end
- end
Add Comment
Please, Sign In to add comment