Last active
October 13, 2015 11:39
-
-
Save wilsonsilva/8323cfcd1f4dc3363c44 to your computer and use it in GitHub Desktop.
RSpec one liners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe User do | |
| subject { create(:user, name: 'Wilson Silva', activated: true) } | |
| it { is_expected.to be_activated } | |
| its(:name) { is_expected.to eq('Wilson Silva') } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment