Skip to content

Commit

Permalink
Merge pull request hotsh#639 from carols10cents/issue_636
Browse files Browse the repository at this point in the history
Issue 636
  • Loading branch information
wilkie committed Sep 8, 2012
2 parents b6527ba + 2a0cc83 commit bc2bf60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/users/edit.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
- if @user.twitter?
%img.linked-image{:src => asset_path("twitter_newbird_blue.png"), :alt => "Twitter Account"}
.linked-name="@#{@user.twitter.nickname}"
%form.profile-update{:action => "/users/#{@user.username}/auth/twitter", :method => "POST", :name => "profile_update_form"}
%input{:type => "hidden", :name => "_method", :value => "delete"}
= form_tag "/users/#{@user.username}/auth/twitter", :method => "delete", :class => "profile-update", :name => "profile_update_form" do
%input.button{:type => "submit", :value => "Remove"}
- else
%form.profile-update{:action => "/auth/twitter", :method => "GET", :name => "profile_update_form"}
Expand Down
1 change: 1 addition & 0 deletions test/acceptance/acceptance_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module AcceptanceHelper
include ShowMeTheCookies

OmniAuth.config.test_mode = true
ActionController::Base.allow_forgery_protection = true

if ENV["ENABLE_HTTPS"] == "yes"
Capybara.app_host = 'https://www.example.com'
Expand Down

0 comments on commit bc2bf60

Please sign in to comment.