Created
June 10, 2015 19:53
-
-
Save ewalk153/044b19aaa1e0a1cbbe15 to your computer and use it in GitHub Desktop.
This file contains 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
{ :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