<LeLutin>
hello! I'm having trouble with writing a specific rspec test. I wonder if this is a good place for this subject or if I should rather search for a channel with a topic more specifically on rspec?
<weaksauce>
here's as good as any
<LeLutin>
I'm configuring CI to run on a project (a puppet module) that was not executing tests before. for that I'm trying to modify a spec test to a more modern syntax and I stumbled upon something that's apparently a no_op and I'm not sure how I can represent this condition in the test. the line in the code before my changes is ...
<LeLutin>
... err woops I inverted the two URLs. second one is *before* and first one is *after*
<LeLutin>
I guess in a broader sense: the person who initially wrote that test wanted to ensure that some function would not get executed during the tests.. that's what I don't know how to represent with the allow()/expect() syntax
<LeLutin>
oh no .. did I just again talk myself into trying something new before I get an answer? ... I just changed allow() to expect() with the same ending of line and now it's running happily. is "expect(something).not_to receive(:something)" a structure that would actually make sense?
<weaksauce>
yeah i was just going to suggest expect
<LeLutin>
weaksauce: huh ok, thanks for the validation. sorry for the noise.. I was starting to feel cornered but apparently there was still something I had not tried yet hehe