Skip to content

Instantly share code, notes, and snippets.

@didlix
Created October 28, 2014 15:33
Show Gist options
  • Save didlix/8774e3b4b9e0ac7289ed to your computer and use it in GitHub Desktop.
Save didlix/8774e3b4b9e0ac7289ed to your computer and use it in GitHub Desktop.
Literally coding social expectations
it { should allow_value('male').for(:gender) }
it { should allow_value('female').for(:gender) }
it { should_not allow_value('').for(:gender) }
it { should_not allow_value('other').for(:gender) }
it { should allow_value(nil).for(:gender) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment