{"id":16948124,"url":"https://github.com/technicalpickles/nice_assert_select","last_synced_at":"2025-04-11T20:11:45.465Z","repository":{"id":504695,"uuid":"132060","full_name":"technicalpickles/nice_assert_select","owner":"technicalpickles","description":"make assert_select nicer","archived":false,"fork":false,"pushed_at":"2009-02-19T08:52:42.000Z","size":88,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T10:55:39.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/technicalpickles.png","metadata":{"files":{"readme":"README.rdoc","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":"2009-02-18T21:59:31.000Z","updated_at":"2019-08-13T14:01:57.000Z","dependencies_parsed_at":"2022-07-21T09:22:26.891Z","dependency_job_id":null,"html_url":"https://github.com/technicalpickles/nice_assert_select","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fnice_assert_select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fnice_assert_select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fnice_assert_select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technicalpickles%2Fnice_assert_select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technicalpickles","download_url":"https://codeload.github.com/technicalpickles/nice_assert_select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473127,"owners_count":21109628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-13T21:49:42.117Z","updated_at":"2025-04-11T20:11:45.437Z","avatar_url":"https://github.com/technicalpickles.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= nice_assert_select\n\nTired of ugly assert_select calls?\n\n  assert_select \"form[action=?][method=post]\", sources_path do\n    assert_select \"input[type=text][name=?]\", 'source[name]'\n    assert_select \"input[type=hidden][name=_method][value=put]\"\n    assert_select \"input[type=submit]\"\n  end\n\nHow about some nice assert_selects?\n\n  assert_select form(:action =\u003e :post, :action =\u003e sources_path) do\n    assert_select text_field(:name =\u003e 'source[name]')\n    assert_select form_method_field(:put)\n    assert_select submit_button\n  end\n\n  \nnice_assert_select provides helpers for making the calls more rubyish and more readable. Currently, they are mostly limited to form related selectors that do attribute matching.\n\n  form\n  text_field\n  hidden_field\n  password_field\n  form_method_field (this is the hidden field Rails uses for determing what HTTP method to use, since browsers are generally limited to GET and POST)\n  submit_button\n\nIt is by no means comprehensive, as it was extracted from a project which only needed these assert_selects.\n\n== Installing\n\nFor Rails 2.1 and on, add this to your config/environment.rb:\n\n  config.gem 'technicalpickles-nice_assert_select', :lib =\u003e 'nice_assert_select', :source =\u003e 'http://gems.github.com'\n\n== COPYRIGHT\n\nCopyright (c) 2009 Josh Nichols. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fnice_assert_select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnicalpickles%2Fnice_assert_select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnicalpickles%2Fnice_assert_select/lists"}