• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gravitystorm / openstreetmap-website
95%
master: 97%

Build:
Build:
LAST BUILD BRANCH: rubocop_todo
DEFAULT BRANCH: master
Repo Added 17 Dec 2020 11:56AM UTC
Token ESCKChrrqwzCcwSru2mafYw3YmPFvmhr7 regen
Build 743 Last
Files 244
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH find_by
branch: find_by
CHANGE BRANCH
x
Reset
Sync Branches
  • find_by
  • 1391-show-diary-entry
  • about
  • account_deletion
  • accounts_controller
  • action_cop
  • action_order
  • activerecord_or
  • add_debug
  • align_structure
  • ambiguous_operator_precedence
  • anton_maintainer
  • apache
  • api_actions
  • api_around_action
  • api_call_handlers
  • assert_content
  • assignments
  • attribution_changes
  • auto_extension
  • auto_factory
  • avoid_html
  • avoid_id
  • belongs_to
  • bigint_sequences
  • blank_issue
  • bootstrap_5
  • bootstrap_5_2
  • bootstrap_5_3
  • bootstrap_release
  • brakeman
  • browser-gem
  • bundle_update
  • bundler
  • button_variant
  • buttons
  • centre_point
  • change_table
  • changes
  • changeset_browse
  • changeset_render
  • close_modal
  • code_examples
  • combine_scss
  • comment_padding
  • comments
  • common_details
  • communities_offline
  • complex_flash
  • conditional_tags
  • confirmation_from
  • content_tag
  • cooldown
  • copyright_lang
  • count_number
  • coveralls_revert
  • cpk_update
  • created_at
  • css
  • custom_hard_coded_string
  • dartsass-sprockets
  • dashboard
  • default_css
  • degooglify
  • deletion_params
  • dependabot/bundler/dependencies-f211ec8de6
  • dependabot/github_actions/actions/cache-2.1.6
  • dependabot/github_actions/actions/cache-2.1.7
  • dependabot/github_actions/actions/cache-3
  • dependabot/github_actions/actions/cache-v2.1.4
  • dependabot/github_actions/actions/cache-v2.1.5
  • dependabot/github_actions/actions/checkout-2.3.5
  • dependabot/github_actions/actions/checkout-2.4.0
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-6.0.0
  • dependabot/github_actions/actions/setup-ruby-1.1.3
  • dependabot/github_actions/coverallsapp/github-action-1.1.3
  • dependabot/github_actions/coverallsapp/github-action-1.2.0
  • dependabot/github_actions/coverallsapp/github-action-1.2.2
  • dependabot/github_actions/coverallsapp/github-action-1.2.3
  • dependabot/github_actions/coverallsapp/github-action-1.2.4
  • dependabot/github_actions/dependencies-79d38fee10
  • dependabot/npm_and_yarn/eslint-7.16.0
  • dependabot/npm_and_yarn/eslint-7.17.0
  • dependabot/npm_and_yarn/eslint-7.18.0
  • dependabot/npm_and_yarn/eslint-7.19.0
  • dependabot/npm_and_yarn/eslint-7.20.0
  • dependabot/npm_and_yarn/eslint-7.21.0
  • dependabot/npm_and_yarn/eslint-7.22.0
  • dependabot/npm_and_yarn/eslint-7.23.0
  • dependabot/npm_and_yarn/eslint-7.24.0
  • dependabot/npm_and_yarn/eslint-7.25.0
  • dependabot/npm_and_yarn/eslint-7.26.0
  • dependabot/npm_and_yarn/eslint-7.27.0
  • dependabot/npm_and_yarn/eslint-7.28.0
  • dependabot/npm_and_yarn/eslint-7.29.0
  • dependabot/npm_and_yarn/eslint-7.30.0
  • dependabot/npm_and_yarn/eslint-7.31.0
  • dependabot/npm_and_yarn/eslint-7.32.0
  • dependabot/npm_and_yarn/eslint-8.0.0
  • dependabot/npm_and_yarn/eslint-8.0.1
  • dependabot/npm_and_yarn/eslint-8.1.0
  • dependabot/npm_and_yarn/eslint-8.10.0
  • dependabot/npm_and_yarn/eslint-8.11.0
  • dependabot/npm_and_yarn/eslint-8.12.0
  • dependabot/npm_and_yarn/eslint-8.13.0
  • dependabot/npm_and_yarn/eslint-8.14.0
  • dependabot/npm_and_yarn/eslint-8.15.0
  • dependabot/npm_and_yarn/eslint-8.16.0
  • dependabot/npm_and_yarn/eslint-8.17.0
  • dependabot/npm_and_yarn/eslint-8.18.0
  • dependabot/npm_and_yarn/eslint-8.2.0
  • dependabot/npm_and_yarn/eslint-8.20.0
  • dependabot/npm_and_yarn/eslint-8.21.0
  • dependabot/npm_and_yarn/eslint-8.22.0
  • dependabot/npm_and_yarn/eslint-8.23.0
  • dependabot/npm_and_yarn/eslint-8.23.1
  • dependabot/npm_and_yarn/eslint-8.25.0
  • dependabot/npm_and_yarn/eslint-8.26.0
  • dependabot/npm_and_yarn/eslint-8.27.0
  • dependabot/npm_and_yarn/eslint-8.28.0
  • dependabot/npm_and_yarn/eslint-8.3.0
  • dependabot/npm_and_yarn/eslint-8.30.0
  • dependabot/npm_and_yarn/eslint-8.32.0
  • dependabot/npm_and_yarn/eslint-8.33.0
  • dependabot/npm_and_yarn/eslint-8.34.0
  • dependabot/npm_and_yarn/eslint-8.35.0
  • dependabot/npm_and_yarn/eslint-8.4.0
  • dependabot/npm_and_yarn/eslint-8.4.1
  • dependabot/npm_and_yarn/eslint-8.5.0
  • dependabot/npm_and_yarn/eslint-8.6.0
  • dependabot/npm_and_yarn/eslint-8.7.0
  • dependabot/npm_and_yarn/eslint-8.8.0
  • dependabot/npm_and_yarn/eslint-8.9.0
  • dependabot/npm_and_yarn/js-cookie-3.0.1
  • dependabot/npm_and_yarn/leaflet-1.8.0
  • dependabot/npm_and_yarn/leaflet-1.9.0
  • dependabot/npm_and_yarn/leaflet-1.9.1
  • dependabot/npm_and_yarn/leaflet-1.9.2
  • dependabot/npm_and_yarn/leaflet-1.9.3
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.72.2
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.73.0
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.74.0
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.74.1
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.76.0
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.76.1
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.78.0
  • dependabot/npm_and_yarn/leaflet.locatecontrol-0.79.0
  • dependabot/npm_and_yarn/ohauth-1.0.1
  • dependabot/npm_and_yarn/qs-6.10.0
  • dependabot/npm_and_yarn/qs-6.10.1
  • dependabot/npm_and_yarn/qs-6.10.2
  • dependabot/npm_and_yarn/qs-6.10.3
  • dependabot/npm_and_yarn/qs-6.10.5
  • dependabot/npm_and_yarn/qs-6.11.0
  • dependabot/npm_and_yarn/qs-6.11.1
  • dependabot/npm_and_yarn/qs-6.9.6
  • dependabot/npm_and_yarn/stylistic/eslint-plugin-5.6.1
  • dependabot/npm_and_yarn/tag2link-2025.11.21
  • dev_populate
  • devise_passwords
  • diary_comments
  • division
  • docker_compose
  • docker_healthcheck
  • docker_jammy
  • docs
  • documentatation
  • doorkeeper
  • dry-failure
  • em
  • emergency
  • erb_lint_again
  • erb_safety
  • erblint_deprecations
  • errors_add
  • eslint-erb-fixes
  • eslint-plugin-erb
  • even_more_bootstrap
  • export_controller
  • external_redirect
  • faster_tests
  • firefox_binary
  • fix_registration
  • flash
  • flash_before_render
  • floats_and_borders
  • framework_defaults
  • globe_alignment
  • header_height
  • heading-sizes
  • html_safe
  • i18n_tasks
  • i18n_validations
  • ignore_engines
  • image_optim_development
  • image_sizes
  • implicit_association
  • issue_reassign
  • issue_templates
  • issues_secondary_actions
  • italics
  • jammy2
  • json_root_attributes
  • leaflet_focus
  • locale_param_3
  • locatecontrol_es5
  • login_bootstrap
  • login_css
  • login_form
  • login_path
  • mail_queue_clear
  • mailer_previews
  • mailto
  • map-ui
  • margin
  • margin_top
  • markdown_test
  • master
  • messages
  • meta_i18n
  • minitest_6
  • minitest_focus
  • more_bootstrap
  • more_bootstrap_forms
  • my_account
  • named_paths
  • nav-tab-title
  • no-global-text-align
  • no_html
  • no_html_2
  • no_html_copyright
  • no_zero
  • notes_refactor
  • oauth_configure
  • osmf_wiki_links
  • params_fix
  • paranoid_email_reset
  • postgres_version
  • postgresql_version
  • potlatch_preferences
  • pr_guidance
  • preferences_flash
  • preferred_something
  • project_name
  • pt_br
  • rails_7_2_1
  • rails_version
  • rake
  • rake_extension
  • raw_html
  • rbenv
  • readme_trac
  • redundant_validation
  • refactor_changeset_comment_feed
  • regexp_escape
  • remove_id_defaults
  • remove_old_richtext_helper
  • remove_tile_for_point_sql
  • require_xml
  • reverse_button
  • richtext_form_2
  • richtext_refactor
  • rubocop-minitest-focus
  • rubocop_rails_bug
  • rubocop_rake
  • rubocop_todo
  • ruby_simplifications
  • sanitize
  • sanitize_2
  • search_forms_bootstrap
  • search_wrap
  • secondary
  • secondary-actions
  • security_policy
  • sessions
  • settings_refactor
  • settings_tabs
  • skip_intermediate_lengths
  • soft_destroy_tokens
  • sprockets_direct
  • style_tweaks
  • styling
  • symlinks
  • system_timer
  • test_all
  • test_filename
  • tests
  • thumbnails
  • time_helpers
  • timezone_in_tests
  • trace_index
  • trace_job_option
  • tracepoint_to_xml
  • traces-header
  • traces_index_2
  • turbo_refactor
  • ubuntu_workflows
  • unused_translations
  • update_strong_migrations
  • updated_by_resolved_issue
  • use_factories
  • user_activate_docs
  • user_blocks_dl
  • user_blocks_form
  • user_blocks_short_duration
  • user_destroy
  • user_forms
  • user_menu_focus
  • user_status
  • user_suspended
  • user_terms_login_redirect
  • userinformation
  • users_controller
  • vagrant_bundle
  • vagrant_db_create
  • viewport
  • vips-nomagick
  • wait_for_selector
  • where_in
  • whitespace
  • wikipedia_fragments
  • yaml_quoting
  • yarn_install

04 Oct 2023 04:53PM UTC coverage: 95.339%. Remained the same
6409151350

push

github

gravitystorm
Prefer find_by() instead of where().first

These are very similar, differing only if we would expect multiple
results and the sorting is important. However, in all our cases
we're only expecting one result to be returned, and so find_by is
easier to read.

9 of 9 new or added lines in 4 files covered. (100.0%)

6095 of 6393 relevant lines covered (95.34%)

941.22 hits per line

Relevant lines Covered
Build:
Build:
6393 RELEVANT LINES 6095 COVERED LINES
941.22 HITS PER LINE
Source Files on find_by
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6409151350 find_by Prefer find_by() instead of where().first These are very similar, differing only if we would expect multiple results and the sorting is important. However, in all our cases we're only expecting one result to be returned, and so find_by is easier ... push 04 Oct 2023 05:08PM UTC gravitystorm github
95.34
See All Builds (290)

Badge your Repo: openstreetmap-website

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc