Skip to content

Commit

Permalink
Adding provider to url so box and dropbox will work
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyncole committed Jun 13, 2016
1 parent 878f601 commit ddd6bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/browse_everything_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def auth_link
@auth_link ||= if provider.present?
link, data = provider.auth_link
session["#{provider_name}_data"] = data
link
"#{link}&provider=#{provider.key}"
else
nil
end
Expand Down
1 change: 1 addition & 0 deletions spec/helper/browse_everything_controller_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
subject {helper_context.auth_link}
it "has a single state" do
expect(subject.scan(/state/).length).to eq 1
expect(subject.scan(/provider/).length).to eq 1
end
end
end

0 comments on commit ddd6bb2

Please sign in to comment.