Vote count:
0
I have a method that looks like this:
def set_container_bg
open(self.page.permanent_screenshot) do |file|
# some logic with file
end
end
And I am trying to create a rspec test, but I want to mock the open method inside set_container_bg, so that it returns something that I expect?
How can I do so?
asked 55 secs ago
Aucun commentaire:
Enregistrer un commentaire