Closed rnhutsko closed 8 years ago
Thanks for raising this issue! I've updated the lab so it just pulls the local HTML file without running up a server.
Please keep raising issues if you see anything else, and thanks for helping us make Learn better!
So I had an issue yesterday on this lab and was asked to raise an issue for the bug to be addressed. The issue is that when scrapping the index page for the students profile page url we grab a shortened version of the url. This shortened version will pass the rspec tests but will not populate students into the array for eventual output at runtime. I will post code next to make this more clear....
The code just submitted will work at runtime but will fail the test. This is because line 12 reads as follows...
:profile_url => "http://127.0.0.1:4000/fixtures/student-site/" + card.css("a").attr('href').text
To pass the test the line has to be shortened to...
:profile_url => "http://127.0.0.1:4000/" + card.css("a").attr('href').text
It seems the path is not correct in the spec file.