adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 2.7.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
cek has joined #ruby
markong has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
kaivai has quit [Ping timeout: 276 seconds]
swaggboi has quit [Quit: C-x C-c]
shokohsc0 has joined #ruby
shokohsc has quit [Ping timeout: 248 seconds]
shokohsc0 is now known as shokohsc
swaggboi has joined #ruby
kaivai has joined #ruby
Al2O3 has quit [Ping timeout: 252 seconds]
Al2O3 has joined #ruby
Linux_Kerio has joined #ruby
ur5us has joined #ruby
Linux_Kerio has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
cek has quit [Quit: Connection closed for inactivity]
bambanxx has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
grenierm has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Linux_Kerio has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.8]
gr33n7007h has joined #ruby
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
ur5us has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
grenierm has quit [Ping timeout: 260 seconds]
crespire1 has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire has joined #ruby
crespire1 has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
crespire has quit [Ping timeout: 255 seconds]
otisolsen70 has joined #ruby
Pixi has joined #ruby
Pixi__ has quit [Ping timeout: 255 seconds]
___nick___ has joined #ruby
socion50 has joined #ruby
unjuic has joined #ruby
socion50 has quit [Ping timeout: 260 seconds]
unjuic has quit [Ping timeout: 240 seconds]
plectr has joined #ruby
plectr has quit [Ping timeout: 240 seconds]
shokohsc3 has joined #ruby
shokohsc has quit [Ping timeout: 255 seconds]
shokohsc3 is now known as shokohsc
Sheilong has joined #ruby
smp_ has joined #ruby
smp has quit [Ping timeout: 265 seconds]
smp_ is now known as smp
fercell has quit [Ping timeout: 265 seconds]
moldorcoder7 has joined #ruby
bhaak has quit [Ping timeout: 250 seconds]
bhaak has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp- is now known as Sankalp
Roonin has joined #ruby
Rounin has quit [Read error: Connection reset by peer]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
Roonin is now known as Rounin
Rounin is now known as Guest5603
Guest5603 is now known as Roonin
dviola has quit [Quit: WeeChat 3.8]
Linux_Kerio has quit [Ping timeout: 240 seconds]
LeLutin has joined #ruby
<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> ... https://gitlab.com/LeLutin/sshd/-/blob/configure_ci/spec/functions/ssh_keygen_spec.rb#L70 -- I naively changed this to use allow(...).to receive(..).never, then rubocop told me "nah-ah, use .not_to instead of .never" and now I'm getting a message that says I'm doing something useless.
<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
<weaksauce> there it uses the expect... to not
<weaksauce> so it's definitely something that's used
<LeLutin> weaksauce: neat thanks for the reference
agent_white has quit [Remote host closed the connection]
LeLutin has left #ruby [#ruby]
seisatsu has quit [Read error: Connection reset by peer]
___nick___ has quit [Ping timeout: 252 seconds]
seisatsu has joined #ruby
___nick___ has joined #ruby
Cache_Money has joined #ruby
otisolsen70 has quit [Quit: Leaving]
_ht has quit [Quit: _ht]
Sheilong has quit []
markong has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
tjnhxmzhmqgytuwt has joined #ruby
Akamni34 has joined #ruby
John_Ivan has quit [Quit: Phantom of the future.]
Cache_Money has quit [Ping timeout: 260 seconds]
medusi has joined #ruby
Cretic91 has joined #ruby