Skip to content

Commit

Permalink
chore: replace API key in spec_helper with env var (#130)
Browse files Browse the repository at this point in the history
* chore: replace API key in spec_helper with env var

* docs: add env var to README example for tests
  • Loading branch information
Justintime50 authored Dec 2, 2021
1 parent f924347 commit 25c4da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Up-to-date documentation at: https://easypost.com/docs

```bash
# Run tests
bundle exec rspec
API_KEY=123... bundle exec rspec
```

## Releasing
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

RSpec.configure do |config|
config.before(:each) do
EasyPost.api_key = 'BmvaWhg8mP26QXWdTplYWA'
EasyPost.api_key = ENV['API_KEY']
end

config.around(:each) do |example|
Expand Down

0 comments on commit 25c4da2

Please sign in to comment.