https://kotlinlang.org logo
#minutest
Title
# minutest
d

dmcg

03/25/2019, 4:43 PM
Latest version
c

christophsturm

03/25/2019, 5:34 PM
I didn’t really notice that the fixture is really such a new idea. also it’s hard to see how rspec handles this because fixtures in rspec are (rails) database fixtures
d

dmcg

03/25/2019, 5:49 PM
RSpec DB fixtures are named I think and have special treatment. Where it has the issue I describe is the the object-graph fixture. I think it calls the fixture init function let
c

christophsturm

03/26/2019, 10:51 AM
its a very interesting read but maybe there should be a tldr summary, maybe tldr: spec style fucks up the lifecycle.
d

dmcg

03/26/2019, 10:53 AM
Yes, although it takes a symbol as a name and then dynamically magics up a lazy instance var I think
c

christophsturm

03/26/2019, 10:56 AM
or maybe add a very short version of that article and call it “wtf fixture?”
d

dmcg

03/26/2019, 12:10 PM
Thanks for the feedback. I think there is definitely a need for a shorter version as part of the Minutest docs on fixtures.
2 Views