Barometer::Support
Support files for running Barometer related specs.
Usage
Matchers
Rpsec matchers for weather data specific assertions.
In your spec_helper.rb:
require 'barometer-support'
include Barometer::Support::Matchers
API Key Configuration
Parses API keys from a standard ~/.barometer file.
Example ~/.barometer yaml file:
foo:
apikey: 'secret'
Example usage:
FOO_APIKEY = Barometer::Support::KeyFileParser.find(:foo, :apikey)
Installation
Add this line to your application's Gemfile:
gem 'barometer-support'
And then execute:
$ bundle
Or install it yourself as:
$ gem install barometer-support
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request