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

codeforamerica / ohana-web-search / 1421
91%
master: 98%

Build:
Build:
LAST BUILD BRANCH: mb-circle-ci
DEFAULT BRANCH: master
Ran 25 Jun 2014 05:00AM UTC
Jobs 1
Files 12
Run time 7s
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

pending completion
1421

push

travis-ci

monfresh
Make attribute presence checks more flexible

Using the `key?` method, as in `org.key?(:attribute)` to check for the presence of an attribute assumes that the API will never return attributes whose values are nil or blank. By checking for the presence via `.present?`, it allows the client to continue working even if the API decides to return nil/blank attributes. The next updates to the API will in fact return nil attributes, so this change is necessary to make sure this client still works once the updates are pushed.

This change works with the current version of the API, so it can safely be merged even before the API updates are pushed.

In the process, I also cleaned up a bunch of unnecessary presence checks, and optimized the code.

I also spent a lot of time that I hadn't anticipated fixing the filter specs which started breaking again for some reason. I switched back to capybara-webkit because Poltergeist wasn't able to click on the toggles. Instead of using CSS classes, I tried using the xpath, and Capybara said that it couldn't click on a particular element because there was another one overlapping it. I think this is the main reason we have been having so much trouble with these specs. I'm not sure whether or not having overlapping elements is considered a bad practice, but it certainly doesn't help with these tests. I think I was able to find the right xpath to click on, and so far, the specs are passing locally.

I really can't wait until we replace the filters with just one simple input field for location and agency name.

236 of 261 relevant lines covered (90.42%)

38.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1421.1 (2.1.1) 25 Jun 2014 05:00AM UTC 0
90.42
Travis Job 1421.1
Source Files on build 1421
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1421
  • 1717c58c on github
  • Next Build on api-updates (#1423)
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