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

FoveaCentral / google_maps_geocoder / 11585304144 / 1
100%
master: 100%

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

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%)

26.57 hits per line

Source Files on job 11585304144.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11585304144
  • 3cadae56 on github
  • Prev Job for on master (#11358589948.2)
  • Next Job for on master (#11603509068.1)
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