Skip to content

Instantly share code, notes, and snippets.

@ewalk153
Created June 10, 2015 19:53
Show Gist options
  • Save ewalk153/044b19aaa1e0a1cbbe15 to your computer and use it in GitHub Desktop.
Save ewalk153/044b19aaa1e0a1cbbe15 to your computer and use it in GitHub Desktop.
{ :admin =>
{
role: Role.create(name: 'admin'),
asdf: 'asdf'
}
:staff =>
{
}
:concierge =>
{
}
}.each do |role_name, role|
it 'should match key to value' do
user = create :user, :admin
# raise user.roles.inspect
user.roles.to_a.should include(role)
end
it 'asdf'
it 'asdf'
it 'asdf'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment