[rspec-users] Mocking question

Mark Nijhof Mark.Nijhof at Cre8iveThought.com
Thu Apr 15 19:39:23 EDT 2010


I am working on creating something that will monitor some files and do
something when they are changed. I am using FSSM for the actual
monitoring. Now I want to verify that it gets initialized with the
correct parameters:

@monitor.path path do
    glob = filter

So below is my mock setup:

def setup_monitor_mock
  mock_monitor = mock('monitor')



But the problem is that I don't know how to verify the values for path
and filter that are used to setup the monitor are correct. I saw some
older posts about the same topic, but I couldn't find something

I hope I explained myself correctly.


More information about the rspec-users mailing list