<cored>
isn't the that new feature done using should_receive
* cored
test
<lgierth>
cored: pong
<cored>
lgierth: ping
<lgierth>
cored: pong (just thought you were testing your connection)
<cored>
:-)
<cored>
I'm testing the should_receive method on rspec
<cored>
but I just notice that I was using the old syntax
<lgierth>
hehe ok
<cored>
which is the same as the new one expect(double).to receive(:method_name)
<cored>
also it doesn't check for the method to exists as with bogus but now rspec 3 will do it
<cored>
good bye fantasy tests
<cored>
;-)
<lgierth>
the only thing i don't like is that you need to pass the class name
snusnu has quit [Quit: Leaving.]
<lgierth>
it would be nice to this using the existing mock matcher api
<lgierth>
something like double(any_instance_of(ConsoleNotifier))
<cored>
lgierth: well, it's seems to me that it should look up the class name to inspect for the method definition
<cored>
double('ClassName')
<cored>
writing ConsoleNotifier with the any_instance_of will imply that the constant should be defined, doesn't it ?
<lgierth>
the double method can look at the kind of argument matcher passed, and then e.g. for any_instance, check that ConsoleNotifier.instance_methods includes the method
<lgierth>
yes
<lgierth>
cored: actually no, the other way round
<lgierth>
as a string, it implies there's the constant. with the argument matcher, you could also pass an anonymous class
snusnu has joined #rom-rb
<cored>
hm
<cored>
with the string can you do something like constantinize
<cored>
?
<lgierth>
yes that's probably what it's doing now in rspec 3
<cored>
got it
cored has quit [Ping timeout: 260 seconds]
CraigBuchek has quit [Quit: Leaving.]
snusnu has quit [Quit: Leaving.]
lfox has joined #rom-rb
florian_k has joined #rom-rb
florian_k has quit [Ping timeout: 246 seconds]
lgierth has quit [Quit: Ex-Chat]
lfox has quit [Quit: ZZZzzz…]
postmodern has quit [Quit: Leaving]
florian_k has joined #rom-rb
juhakaja has joined #rom-rb
juhakaja has quit [Client Quit]
florian_k has quit [Ping timeout: 246 seconds]
florian_k has joined #rom-rb
florian_k has quit [Read error: Connection reset by peer]
florian_k has joined #rom-rb
juhakaja has joined #rom-rb
florian_k has quit [Ping timeout: 260 seconds]
juhakaja has quit [Remote host closed the connection]
juhakaja has joined #rom-rb
juhakaja has quit [Ping timeout: 265 seconds]
juhakaja has joined #rom-rb
florian_k has joined #rom-rb
florian_k has quit [Ping timeout: 240 seconds]
juhakaja has quit []
juhakaja has joined #rom-rb
juhakaja has quit []
florian_k has joined #rom-rb
florian_k has quit [Ping timeout: 246 seconds]
skade has joined #rom-rb
jordanyee has quit [*.net *.split]
dkubb has quit [*.net *.split]
Gibheer has quit [*.net *.split]
_br_ has quit [*.net *.split]
joakimk has quit [*.net *.split]
indrek has quit [*.net *.split]
jdsiegel has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
Guest97410 has quit [*.net *.split]
skade has quit [*.net *.split]
cbuxton_ has quit [*.net *.split]
dbussink has quit [*.net *.split]
avdi has quit [*.net *.split]
kapowaz has quit [*.net *.split]
elskwid has quit [*.net *.split]
jgaskins has quit [*.net *.split]
ChanServ has quit [*.net *.split]
xargoon has quit [*.net *.split]
skade has joined #rom-rb
joakimk has joined #rom-rb
Guest97410 has joined #rom-rb
cbuxton_ has joined #rom-rb
dbussink has joined #rom-rb
indrek has joined #rom-rb
_br_ has joined #rom-rb
dkubb has joined #rom-rb
kapowaz has joined #rom-rb
jgaskins has joined #rom-rb
elskwid has joined #rom-rb
onewheelskyward has joined #rom-rb
jordanyee has joined #rom-rb
Gibheer has joined #rom-rb
jdsiegel has joined #rom-rb
xargoon has joined #rom-rb
avdi has joined #rom-rb
ChanServ has joined #rom-rb
jordanyee has quit [*.net *.split]
dkubb has quit [*.net *.split]
Gibheer has quit [*.net *.split]
_br_ has quit [*.net *.split]
joakimk has quit [*.net *.split]
indrek has quit [*.net *.split]
jdsiegel has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
Guest97410 has quit [*.net *.split]
skade has quit [*.net *.split]
cbuxton_ has quit [*.net *.split]
dbussink has quit [*.net *.split]
avdi has quit [*.net *.split]
kapowaz has quit [*.net *.split]
elskwid has quit [*.net *.split]
jgaskins has quit [*.net *.split]
ChanServ has quit [*.net *.split]
xargoon has quit [*.net *.split]
skade has joined #rom-rb
_br_ has joined #rom-rb
jordanyee has joined #rom-rb
jgaskins has joined #rom-rb
dkubb has joined #rom-rb
Gibheer has joined #rom-rb
elskwid has joined #rom-rb
joakimk has joined #rom-rb
avdi has joined #rom-rb
indrek has joined #rom-rb
jdsiegel has joined #rom-rb
xargoon has joined #rom-rb
kapowaz has joined #rom-rb
onewheelskyward has joined #rom-rb
cbuxton_ has joined #rom-rb
Guest97410 has joined #rom-rb
ChanServ has joined #rom-rb
dbussink has joined #rom-rb
florian_k has joined #rom-rb
florian_k has quit [Remote host closed the connection]
florian_k has joined #rom-rb
florian_k has quit [Read error: Connection reset by peer]
florian_k has joined #rom-rb
skade has quit [Quit: Computer has gone to sleep.]
florian_k has quit [Remote host closed the connection]
florian_k has joined #rom-rb
florian_k has quit [Ping timeout: 260 seconds]
rolfb has joined #rom-rb
cored has joined #rom-rb
cored has joined #rom-rb
mbj has joined #rom-rb
mkristian has joined #rom-rb
snusnu has joined #rom-rb
skade has joined #rom-rb
snusnu has quit [Quit: Leaving.]
breakingthings has joined #rom-rb
cbuxton_ has quit [Read error: Connection reset by peer]
cbuxton_ has joined #rom-rb
snusnu has joined #rom-rb
cored has quit [Ping timeout: 246 seconds]
cored has joined #rom-rb
lfox has joined #rom-rb
CraigBuchek has joined #rom-rb
skade has quit [Ping timeout: 250 seconds]
skade has joined #rom-rb
florian_k has joined #rom-rb
rolfb has quit [Quit: Leaving...]
snusnu has quit [Quit: Leaving.]
snusnu has joined #rom-rb
<mbj>
dkubb, snusnu: hola
florian_k has quit [Remote host closed the connection]
bf4 has joined #rom-rb
florian_k has joined #rom-rb
floria___ has joined #rom-rb
florian_k has quit [Read error: Connection reset by peer]
bf4 has quit [Client Quit]
bf4 has joined #rom-rb
travis-ci has joined #rom-rb
<travis-ci>
[travis-ci] dkubb/equalizer#68 (master - 870e39b : Dan Kubb): The build was broken.