{"action":"created","issue":{"url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/5","repository_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow","labels_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/5/comments","events_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/5/events","html_url":"https://github.com/CraftAcademy/CraftOverflow/issues/5","id":294661847,"number":5,"title":"RSpec and HAML setup problem","user":{"login":"davidboll","id":25644242,"avatar_url":"https://avatars3.githubusercontent.com/u/25644242?v=4","gravatar_id":"","url":"https://api.github.com/users/davidboll","html_url":"https://github.com/davidboll","followers_url":"https://api.github.com/users/davidboll/followers","following_url":"https://api.github.com/users/davidboll/following{/other_user}","gists_url":"https://api.github.com/users/davidboll/gists{/gist_id}","starred_url":"https://api.github.com/users/davidboll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidboll/subscriptions","organizations_url":"https://api.github.com/users/davidboll/orgs","repos_url":"https://api.github.com/users/davidboll/repos","events_url":"https://api.github.com/users/davidboll/events{/privacy}","received_events_url":"https://api.github.com/users/davidboll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-06T07:49:19Z","updated_at":"2018-02-06T07:51:22Z","closed_at":null,"author_association":"NONE","body":"So, I can't get RSpec to work with the HAML-setup, I keep getting errors (see attachement) Do we need to require the “index.html.haml” in our “index_spec.rb”-file?\r\n\r\n<img width=\"698\" alt=\"skarmavbild 2018-02-05 kl 19 14 33\" src=\"https://user-images.githubusercontent.com/25644242/35847284-4112c668-0b1a-11e8-80d3-266715eba897.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/comments/363339020","html_url":"https://github.com/CraftAcademy/CraftOverflow/issues/5#issuecomment-363339020","issue_url":"https://api.github.com/repos/CraftAcademy/CraftOverflow/issues/5","id":363339020,"user":{"login":"davidboll","id":25644242,"avatar_url":"https://avatars3.githubusercontent.com/u/25644242?v=4","gravatar_id":"","url":"https://api.github.com/users/davidboll","html_url":"https://github.com/davidboll","followers_url":"https://api.github.com/users/davidboll/followers","following_url":"https://api.github.com/users/davidboll/following{/other_user}","gists_url":"https://api.github.com/users/davidboll/gists{/gist_id}","starred_url":"https://api.github.com/users/davidboll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidboll/subscriptions","organizations_url":"https://api.github.com/users/davidboll/orgs","repos_url":"https://api.github.com/users/davidboll/repos","events_url":"https://api.github.com/users/davidboll/events{/privacy}","received_events_url":"https://api.github.com/users/davidboll/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T07:51:22Z","updated_at":"2018-02-06T07:51:22Z","author_association":"NONE","body":"So, Raoul the wise gave me the solution, we need to add a line in our spec as seen below. The line we need to add is \" visit '/' \" (se line 3)\r\n\r\n`describe 'Index Page', type: :feature do\r\n  it 'displays project list' do\r\n    visit '/'\r\n\r\n    expect(page).to have_css '.projects'\r\n    within '.projects' do\r\n      expect(page).to have_content 'My First Website'\r\n      expect(page).to have_content 'FizzBuzz'\r\n    end\r\n  end\r\nend`"}}
{"actor":{"display_login":"davidboll"}}