Commit 2ac0bbb4
Changed files (2)
app
helpers
spec
features
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
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