{"action":"created","issue":{"url":"https://api.github.com/repos/wisebits/url-shortner/issues/10","repository_url":"https://api.github.com/repos/wisebits/url-shortner","labels_url":"https://api.github.com/repos/wisebits/url-shortner/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/wisebits/url-shortner/issues/10/comments","events_url":"https://api.github.com/repos/wisebits/url-shortner/issues/10/events","html_url":"https://github.com/wisebits/url-shortner/issues/10","id":150281870,"number":10,"title":"Issue with Test","user":{"login":"omarsar","id":7049564,"avatar_url":"https://avatars.githubusercontent.com/u/7049564?v=3","gravatar_id":"","url":"https://api.github.com/users/omarsar","html_url":"https://github.com/omarsar","followers_url":"https://api.github.com/users/omarsar/followers","following_url":"https://api.github.com/users/omarsar/following{/other_user}","gists_url":"https://api.github.com/users/omarsar/gists{/gist_id}","starred_url":"https://api.github.com/users/omarsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarsar/subscriptions","organizations_url":"https://api.github.com/users/omarsar/orgs","repos_url":"https://api.github.com/users/omarsar/repos","events_url":"https://api.github.com/users/omarsar/events{/privacy}","received_events_url":"https://api.github.com/users/omarsar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wisebits/url-shortner/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-22T06:28:18Z","updated_at":"2016-04-23T01:59:39Z","closed_at":null,"body":"@soumyaray Here is the issue I explained in class. I have commented out the lines that are not functioning... Basically the issue lies in this line: \r\n`new_url.add_permission(status: 'testing', description: 'anything')`. \r\nAll the tests run, except this one, which is generating a \"Type Mismatch exception.\" \r\n\r\n``` ruby\r\n# directory: spec/url_spec.rb\r\ndescribe 'Finding existing URLs' do\r\n    it 'HAPPY: should find an existing URL' do\r\n      new_url = Url.new(title: 'test23')\r\n      new_url.url = 'http://test23.com'\r\n      new_url.shorturl = new_url.url\r\n      new_url.save\r\n\r\n      #new_permissions = (1..3).map do |i|\r\n      #new_url.add_permission(status: 'testing', description: 'anything')\r\n      #end\r\n\r\n      get \"/api/v1/urls/#{new_url.id}\"\r\n      _(last_response.status).must_equal 200\r\n\r\n      results = JSON.parse(last_response.body)\r\n      _(results['data']['id']).must_equal new_url.id\r\n\r\n      #3.times do |i|\r\n      #  _(results['relationships'][i]['id']).must_equal new_permissions[i].id\r\n      #end\r\n    end\r\n```\r\n\r\nCC: @adi-botak- @nweat #"},"comment":{"url":"https://api.github.com/repos/wisebits/url-shortner/issues/comments/213648565","html_url":"https://github.com/wisebits/url-shortner/issues/10#issuecomment-213648565","issue_url":"https://api.github.com/repos/wisebits/url-shortner/issues/10","id":213648565,"user":{"login":"soumyaray","id":1926704,"avatar_url":"https://avatars.githubusercontent.com/u/1926704?v=3","gravatar_id":"","url":"https://api.github.com/users/soumyaray","html_url":"https://github.com/soumyaray","followers_url":"https://api.github.com/users/soumyaray/followers","following_url":"https://api.github.com/users/soumyaray/following{/other_user}","gists_url":"https://api.github.com/users/soumyaray/gists{/gist_id}","starred_url":"https://api.github.com/users/soumyaray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumyaray/subscriptions","organizations_url":"https://api.github.com/users/soumyaray/orgs","repos_url":"https://api.github.com/users/soumyaray/repos","events_url":"https://api.github.com/users/soumyaray/events{/privacy}","received_events_url":"https://api.github.com/users/soumyaray/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T01:59:39Z","updated_at":"2016-04-23T01:59:39Z","body":"Hi, which branch should I be testing on?  I notice that the tests in the master branch are using wrong attribute names for your Url model."}}