diff options
| author | mo khan <mo@mokhan.ca> | 2013-10-24 22:20:04 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-10-24 22:20:04 -0600 |
| commit | 2ac0bbb40a6eae21c706fd6c86534dc49abebfbc (patch) | |
| tree | 527ef22bfe995cbc76ec2eb8d3c7625344db9445 | |
| parent | 0648fa48042f78ac1c6621f613107e86ca29b294 (diff) | |
fix broken add to favorites spec.
| -rw-r--r-- | app/helpers/application_helper.rb | 2 | ||||
| -rw-r--r-- | spec/features/add_to_favorites_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 50de2242..b4e8bac2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -25,7 +25,7 @@ module ApplicationHelper end message = Base64.encode64(data).gsub("\n", "") timestamp = Time.now.to_i - signature = OpenSSL::HMAC.hexdigest('sha1', ENV['DISQUS_SECRET_KEY'], "#{message} #{timestamp}") + signature = OpenSSL::HMAC.hexdigest('sha1', ENV['DISQUS_SECRET_KEY'] || '', "#{message} #{timestamp}") "#{message} #{signature} #{timestamp}" end end diff --git a/spec/features/add_to_favorites_spec.rb b/spec/features/add_to_favorites_spec.rb index 452e8c45..24ea48ee 100644 --- a/spec/features/add_to_favorites_spec.rb +++ b/spec/features/add_to_favorites_spec.rb @@ -18,4 +18,4 @@ describe "adding a cake to your favorites", :js => true do it "should redirect you to the cake after" do page.should have_content("Welcome to the fanclub!") end -end
\ No newline at end of file +end |
