Skip to content

Commit

Permalink
clean up recs in rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Oct 25, 2024
1 parent 87df585 commit 3f46108
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/controllers/owner_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
@client = mock_httpclient
end

after(:each) do
@objects.each do |obj|
obj.delete
end
@collection.delete
@owner.delete
end

def mock_owner_name(name)
allow_any_instance_of(ApplicationController).to receive(:current_owner_name).and_return(name)
end
Expand Down

0 comments on commit 3f46108

Please sign in to comment.