ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
_ht has quit [Quit: _ht]
taupiqueur has quit [Ping timeout: 246 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
notzmv- has joined #crystal-lang
notzmv has quit [Ping timeout: 265 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 264 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 264 seconds]
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
notzmv- has quit [Ping timeout: 265 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 256 seconds]
notzmv has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 265 seconds]
notzmv has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 246 seconds]
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 246 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 256 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
straight-shoota has quit [Ping timeout: 246 seconds]
taupiqueur has joined #crystal-lang
jhass has quit [Ping timeout: 272 seconds]
straight-shoota has joined #crystal-lang
jhass has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 246 seconds]
notzmv has joined #crystal-lang
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 246 seconds]
brw has quit [Remote host closed the connection]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 246 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 264 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 264 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 260 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 264 seconds]
_ht has joined #crystal-lang
taupiqueur has joined #crystal-lang
hightower3 has quit [Ping timeout: 272 seconds]
hightower2 has joined #crystal-lang
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #crystal-lang
brw has joined #crystal-lang
__ht has joined #crystal-lang
_ht has quit [Ping timeout: 272 seconds]
__ht is now known as _ht
walez has joined #crystal-lang
jmdaemon has quit [Ping timeout: 252 seconds]
__ht has joined #crystal-lang
_ht has quit [Ping timeout: 260 seconds]
__ht is now known as _ht
walez has quit [Quit: Leaving]
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
<FromGitter> <rjnienaber> when tagging specs (https://crystal-lang.org/reference/1.6/guides/testing.html#tagging-specs), is it possible to read which tags have been specified from the cli inside of a spec?
<FromGitter> <Blacksmoke16> seems somewhat unfortunate that every time you run that spec it'll make real API calls and stuff?
<FromGitter> <Blacksmoke16> but i know you can get the tags for a specific spec, tho not sure if you can know what ones were passed
<FromGitter> <Blacksmoke16> another option is using compile time flags
<FromGitter> <rjnienaber> well there's unit tests for the code generation but i don't know if the generated code works unless i kick the tires against a real api
<FromGitter> <Blacksmoke16> ah, hence the tagging so they're not ran by default?
<FromGitter> <rjnienaber> but as i go on, it seems like the behaviour will be the same between the two, but messages might be slightly different
<FromGitter> <rjnienaber> and i don't want to have to duplicate tests on that basis
<FromGitter> <rjnienaber> this looks promising, i'll give it a go
<FromGitter> <Blacksmoke16> use some helper method to generate the payload and just duplicate teh assertions or something
<FromGitter> <Blacksmoke16> id just keep things simple even if that means a bit of duplicate code
<FromGitter> <rjnienaber> so keep with what i'm doing at the moment?
<FromGitter> <Blacksmoke16> just thinking it would be best to not *too* tightly inner mix them. can share all the actual logic tho
<FromGitter> <Blacksmoke16> say some helper method that you pass what type it is and it does the stuff, then have two separate test files both using the same helper?
<FromGitter> <rjnienaber> something like this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=63b1e4c70dba35742355eb35]
<FromGitter> <rjnienaber> ?
<FromGitter> <rjnienaber> how do you do that?
<FromGitter> <Blacksmoke16> sure yea, seems pretty reasonable
<FromGitter> <rjnienaber> okay, will have a think about how to go forward
<FromGitter> <rjnienaber> thanks for the help :)
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/Spec/Item.html#tags%3ASet%28String%29%7CNil-instance-method
<FromGitter> <rjnienaber> i did see that but i'm not sure how to get hold of them inside a spec at runtime
<FromGitter> <Blacksmoke16> hm
<FromGitter> <Blacksmoke16> ah, it was just a thought. See https://forum.crystal-lang.org/t/spec-example-description/1296
SamantazFox has joined #crystal-lang
SamantazFox_ has quit [Ping timeout: 265 seconds]
ur5us has joined #crystal-lang
_ht has quit [Quit: _ht]
jmdaemon has joined #crystal-lang
SamantazFox has quit [Killed (NickServ (GHOST command used by SamantazFox_))]
SamantazFox_ has joined #crystal-lang
SamantazFox_ is now known as SamantazFox
taupiqueur has quit [Ping timeout: 252 seconds]
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 256 seconds]