{"action":"closed","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/devise_roles_lab/issues/4","repository_url":"https://api.github.com/repos/learn-co-curriculum/devise_roles_lab","labels_url":"https://api.github.com/repos/learn-co-curriculum/devise_roles_lab/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/devise_roles_lab/issues/4/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/devise_roles_lab/issues/4/events","html_url":"https://github.com/learn-co-curriculum/devise_roles_lab/issues/4","id":132606438,"number":4,"title":"user_spec.rb","user":{"login":"onyoo","id":14326883,"avatar_url":"https://avatars.githubusercontent.com/u/14326883?v=3","gravatar_id":"","url":"https://api.github.com/users/onyoo","html_url":"https://github.com/onyoo","followers_url":"https://api.github.com/users/onyoo/followers","following_url":"https://api.github.com/users/onyoo/following{/other_user}","gists_url":"https://api.github.com/users/onyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/onyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onyoo/subscriptions","organizations_url":"https://api.github.com/users/onyoo/orgs","repos_url":"https://api.github.com/users/onyoo/repos","events_url":"https://api.github.com/users/onyoo/events{/privacy}","received_events_url":"https://api.github.com/users/onyoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vicfriedman","id":3287611,"avatar_url":"https://avatars.githubusercontent.com/u/3287611?v=3","gravatar_id":"","url":"https://api.github.com/users/vicfriedman","html_url":"https://github.com/vicfriedman","followers_url":"https://api.github.com/users/vicfriedman/followers","following_url":"https://api.github.com/users/vicfriedman/following{/other_user}","gists_url":"https://api.github.com/users/vicfriedman/gists{/gist_id}","starred_url":"https://api.github.com/users/vicfriedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicfriedman/subscriptions","organizations_url":"https://api.github.com/users/vicfriedman/orgs","repos_url":"https://api.github.com/users/vicfriedman/repos","events_url":"https://api.github.com/users/vicfriedman/events{/privacy}","received_events_url":"https://api.github.com/users/vicfriedman/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-10T04:51:41Z","updated_at":"2016-04-19T18:21:54Z","closed_at":"2016-04-19T18:21:54Z","body":"This set of tests checks primarily that the role set returns a certain value. If we look at this example, found on user_spec.rb:18 : \r\n```\r\n  it \"#role can be set to :vip\" do\r\n    @user.role = :vip\r\n    expect(@user.role).to eq \"vip\"\r\n  end\r\n```\r\nwe will get the following error:\r\n```\r\nFailures:\r\n\r\n  1) User #role can be set to :vip\r\n     Failure/Error: expect(@user.role).to eq :vip\r\n     \r\n       expected: :vip\r\n            got: \"vip\"\r\n     \r\n       (compared using ==)\r\n     \r\n       Diff:\r\n       @@ -1,2 +1,2 @@\r\n       -:vip\r\n       +\"vip\"\r\n       \r\n     # ./spec/models/user_spec.rb:20:in `block (2 levels) in <top (required)>'\r\n```\r\nTo I realize the test passes with the solution, but the only way I could get it to pass was to change line 20 to:\r\n```\r\n    expect(@user.role).to eq \"vip\"\r\n```\r\n\r\nI'd be interested to know how else to not have it return a string."}}