diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-06 05:12:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-06 05:12:41 -0600 |
| commit | 76ccdfded1ed4ed0cbefef5b8037d598d030c8d2 (patch) | |
| tree | d724866c9cdd462e9d02ab1872a68b96ce17f637 /spec | |
| parent | 9ed0f152390d69f42f1bc763a772617d4ffaf7cb (diff) | |
use name instead of email when posting a comment via disqus
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/helpers/application_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 3fee3de7..fa483ff7 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -2,10 +2,10 @@ require "spec_helper" describe ApplicationHelper do describe :disqus_auth do - let(:user) { OpenStruct.new(id: 1, email: 'test@cakeside.com') } + let(:user) { OpenStruct.new(id: 1, name: 'mo', email: 'test@cakeside.com') } before :each do - data = { id: user.id, username: user.email, email: user.email }.to_json + data = { id: user.id, username: user.name, email: user.email }.to_json message = Base64.encode64(data).gsub("\n", "") timestamp = Time.now.to_i secret = ENV['DISQUS_SECRET_KEY'] = 'secret' |
