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

FoveaCentral / google_maps_geocoder / 11585304144
100%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2024 01:29AM UTC
Jobs 4
Files 1
Run time 1min
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

30 Oct 2024 01:29AM UTC coverage: 98.795%. Remained the same
11585304144

push

github

web-flow
spec: observe RSpec style (#125)

# Closes: n/a

## Goal
Observe conventions in [RSpec Style Guide](https://rspec.rubystyle.guide) so output reads as full sentences.

## Approach
1. Add `context` for valid API key.
2. Wrap each method test in a `describe` block.

## Results
`rspec --format d` outputs:

### Before
```ruby
GoogleMapsGeocoder
  #new
    with "White House"
      is expected to be partial match
      is expected not to be exact match
      address
        is expected to eq "1600 Pennsylvania Avenue Northwest"
        is expected to eq "Washington"
        is expected to eq "District of Columbia"
        is expected to eq "DC"
        is expected to eq "20500"
        is expected to eq "US"
        is expected to eq "United States"
        is expected to match /1600 Pennsylvania Avenue NW, Washington, DC 20500, USA/
      coordinates
        is expected to be within 0.005 of 38.8976633
        is expected to be within 0.005 of -77.0365739
      Geocoder API
        is expected to eq "1600 Pennsylvania Avenue NW, Washington, DC 20500, USA"
        is expected to eq [38.8976763, -77.0365298]
        is expected to eq "United States"
        is expected to eq "US"
        is expected to eq 38.8976763
        is expected to eq -77.0365298
        is expected to eq "District of Columbia"
        is expected to eq "DC"
    when API key is invalid
      is expected to raise GoogleMapsGeocoder::GeocodingError

Finished in 3 seconds (files took 0.14078 seconds to load)
21 examples, 0 failures
```

### After
```ruby
GoogleMapsGeocoder
  #new
    when API key is valid
      with "White House"
        is expected to be partial match
        is expected not to be exact match
        #formatted_street_address
          is expected to eq "1600 Pennsylvania Avenue Northwest"
        #city
          is expected to eq "Washington"
        #state_long_name
          is expected to eq "District of Col... (continued)

82 of 83 relevant lines covered (98.8%)

106.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11585304144.1 30 Oct 2024 01:29AM UTC 0
98.8
GitHub Action Run
2 11585304144.2 30 Oct 2024 01:29AM UTC 0
98.8
GitHub Action Run
3 11585304144.3 30 Oct 2024 01:29AM UTC 0
98.8
GitHub Action Run
4 11585304144.4 30 Oct 2024 01:29AM UTC 0
98.8
GitHub Action Run
Source Files on build 11585304144
Detailed source file information is not available for this build.
  • Back to Repo
  • 3cadae56 on github
  • Prev Build on master (#11358589948)
  • Next Build on master (#11603509068)
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