{"id":19387862,"url":"https://github.com/chrisvfritz/codelab-sinatra-tdd-helper-methods","last_synced_at":"2026-05-17T19:01:33.720Z","repository":{"id":27341555,"uuid":"30816450","full_name":"chrisvfritz/codelab-sinatra-tdd-helper-methods","owner":"chrisvfritz","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-08T22:33:09.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T18:56:16.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisvfritz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-15T03:15:33.000Z","updated_at":"2015-11-04T19:01:55.000Z","dependencies_parsed_at":"2022-09-02T05:11:42.079Z","dependency_job_id":null,"html_url":"https://github.com/chrisvfritz/codelab-sinatra-tdd-helper-methods","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrisvfritz/codelab-sinatra-tdd-helper-methods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisvfritz%2Fcodelab-sinatra-tdd-helper-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisvfritz%2Fcodelab-sinatra-tdd-helper-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisvfritz%2Fcodelab-sinatra-tdd-helper-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisvfritz%2Fcodelab-sinatra-tdd-helper-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisvfritz","download_url":"https://codeload.github.com/chrisvfritz/codelab-sinatra-tdd-helper-methods/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisvfritz%2Fcodelab-sinatra-tdd-helper-methods/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T10:10:54.919Z","updated_at":"2026-05-17T19:01:33.697Z","avatar_url":"https://github.com/chrisvfritz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Helper Methods Practice\n\nThis is a simple app to help students practice writing helper methods. The front-end is done. The specs are written. It's now up to our server-side web developer to fill out the logic for the application in the 3 helper methods of [our `MethodsPracticeHelper` module](https://github.com/chrisvfritz/codelab-sinatra-tdd-helper-methods/blob/master/helpers/methods_practice_helpers.rb).\n\nJust one file. Yet the very fate of our app depends on it. Are you up to the task?\n\n## How to work on this\n\nFirst, complete the usual first steps of the project to create and then download the repo folder. Then we'll `cd` into that folder and make sure the project's dependencies are installed.\n\n``` bash\nbundle install\n```\n\nAnd finally, we'll run guard, which is set up to watch our [methods_practice_helpers.rb](https://github.com/chrisvfritz/codelab-sinatra-tdd-helper-methods/blob/master/helpers/methods_practice_helpers.rb) file and re-run our specs whenever we save a change.\n\n```\nbundle exec guard\n```\n\n\u003e __If you're on Windows__, guard unfortunately doesn't work very well, so you'll have to just run `bundle exec rspec` each time you want to run your specs.\n\nNow start with one of the specs in `spec/helpers/methods_practice_helpers`. When you start working on a method, remove the `, :pending` from the `describe` line with your method's name. For example, in `spec/helpers/methods_practice/image_tag_spec.rb`, we would change this line:\n\n``` ruby\ndescribe '#image_tag', :pending do\n```\n\nto:\n\n``` ruby\ndescribe '#image_tag' do\n```\n\n__Note that I removed not only the word `:pending`, but also the comma (`,`) right before it.__\n\nAs we make progress and keep saving, the results in the terminal should make their way from scary red to comforting green. When all our specs are green, that means everything should be working as it should. At the end, we can run our app with `bundle exec rackup` to confirm that everything on the front-end does indeed look great.\n\n\u003e __If you're on Windows__ and do _not_ see any colors, you may be able to fix this with [these instructions](http://softkube.com/blog/ansi-command-line-colors-under-windows).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisvfritz%2Fcodelab-sinatra-tdd-helper-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisvfritz%2Fcodelab-sinatra-tdd-helper-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisvfritz%2Fcodelab-sinatra-tdd-helper-methods/lists"}