Hi, 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 end So below is my mock setup: def setup_monitor_mock mock_monitor = mock('monitor') #mock_monitor.should_receive(:path).with(".") FSSM::Monitor.stub!(:new).and_return(mock_monitor) mock_monitor end 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 definitive. I hope I explained myself correctly. -Mark _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users