Posts by slimdave@ruby.social
 (DIR) Post #APva6HOORV1qt3KTxI by slimdave@ruby.social
       2022-11-24T09:12:07Z
       
       0 likes, 1 repeats
       
       Suppose you want a test in #Rails #ActiveRecord that says "make sure this scope has applied". How about using `#annotate` in the scope definition, then testing the generated SQL for the presence of the annotation text?
       
 (DIR) Post #APvgTKva41t6EkEKfI by slimdave@ruby.social
       2022-11-24T12:59:43Z
       
       0 likes, 0 repeats
       
       @james One common challenge with "does this ultimately perform the work/return the records I want?" (which I do have a lot of respect for and 99% of our tests do that) is that for anything non-trivial (for which people's definitions will vary) )I can usually look at a test and think of another 10 edge cases. The number of logical tests in a complex SQL statement can easily exceed my willingness to try to do that kind of testing.Shades of grey in here clearly, where different approaches suit.
       
 (DIR) Post #ARfQjeJledT69CdxJI by slimdave@ruby.social
       2023-01-12T15:48:24Z
       
       0 likes, 0 repeats
       
       I have passed my module 2 #motorcycle test, in the pouring rain in Aylesbury, and am now fully licensed.Lookout, drivers. Lookout.
       
 (DIR) Post #AcXIibHG2OFT2jxG9Q by slimdave@ruby.social
       2023-12-06T14:56:51Z
       
       0 likes, 0 repeats
       
       @clive @autumn @thomasfuchs They would have to manufacture or assemble in the US to avoid the 25% Chicken Tax, though.https://en.wikipedia.org/wiki/Chicken_tax
       
 (DIR) Post #AcYvWsygUbo1prdGBU by slimdave@ruby.social
       2023-12-07T09:46:20Z
       
       0 likes, 0 repeats
       
       @clive @autumn @thomasfuchs It's interesting as an example of "why things don't happen even though they seem to be a good idea". Smaller euro-style light trucks might not sell in the volumes needed to support a dedicated manufacture or assembly plant, so the US can't have them at all.
       
 (DIR) Post #Acb3EU60LW5G0BxBlQ by slimdave@ruby.social
       2023-12-08T10:22:13Z
       
       0 likes, 0 repeats
       
       @clive @autumn @thomasfuchs You can only hope that eventually it will get to the point where an existing manufacturer could disrupt the market with a smaller truck. Maybe that's what the Maverick is?