Skip to content

Commit

Permalink
S remove disconnect not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Oct 2, 2024
1 parent 11f6173 commit 90fba1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
4 changes: 1 addition & 3 deletions app/models/connected_apps/vine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ def connect(api_key:, vine_api:, **_opts)
false
end

def disconnect
update! data: nil
end
def disconnect; end
end
end
11 changes: 0 additions & 11 deletions spec/models/connected_apps/vine_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@
end
end

describe "#disconnect" do
it "removes the api key" do
connected_app.data = { api_key: vine_api_key }
connected_app.save!

connected_app.disconnect

expect(connected_app.data).to be_nil
end
end

def mock_api_response(success)
mock_response = instance_double(Faraday::Response)
allow(mock_response).to receive(:success?).and_return(success)
Expand Down

0 comments on commit 90fba1e

Please sign in to comment.