Skip to content

Commit

Permalink
Making the config to read HEROKU_LOGIN/HEROKU_PASSWORD params
Browse files Browse the repository at this point in the history
  • Loading branch information
kaievns committed Nov 1, 2012
1 parent 8c4b1f6 commit 2eeeb8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/save_your_dosh/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def initialize

@heroku = {
'app_id' => ENV['APP_NAME'],
'login' => ENV['SYD_LOGIN'],
'password' => ENV['SYD_PASSWORD']
'login' => ENV['HEROKU_LOGIN'],
'password' => ENV['HEROKU_PASSWORD']
}

read DEFAULTS
Expand Down
8 changes: 4 additions & 4 deletions spec/lib/save_your_dosh/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
ENV['NEW_RELIC_API_KEY'] = 'api-key'

ENV['APP_NAME'] = 'app-name'
ENV['SYD_LOGIN'] = 'syd-login'
ENV['SYD_PASSWORD'] = 'syd-password'
ENV['HEROKU_LOGIN'] = 'syd-login'
ENV['HEROKU_PASSWORD'] = 'syd-password'

@config = SaveYourDosh::Config.new
end
Expand Down Expand Up @@ -48,8 +48,8 @@
it "should assign the heroku credentials from the ENV data" do
@config.heroku.should == {
'app_id' => ENV['APP_NAME'],
'login' => ENV['SYD_LOGIN'],
'password' => ENV['SYD_PASSWORD']
'login' => ENV['HEROKU_LOGIN'],
'password' => ENV['HEROKU_PASSWORD']
}
end
end
Expand Down

0 comments on commit 2eeeb8a

Please sign in to comment.