« first day (1648 days earlier)      last day (1607 days later) » 

9:46 AM
Yea - had stuff everywhere that didn't survive - so feel that sometimes they don't :)
I had to go back to keeping public issues list in past few months to last year - I compared my git hub commits and my progress - short of getting an inferior non-integrated to git system, i'm just way better when i use the system in place ... I also decided till i start getting hit hard for forks - going to run everything in master so it reflects on public page for github ... though like 1/3 of what i'm pushing doesn't go to public
    Found an oddity ...

    # Running:

..EE

Error:
AppOwnerPolicyTest#test_when_pet_not_visible_nonOwnerAdmin_do_not_see:
ArgumentError: #<Pet id: 980190964, name: "test pet", description: nil, pet_category_id: 980190964, location_id: 980190964, created_at: "2018-07-16 09:48:27", updated_at: "2018-07-16 09:48:27", published: false, visible: false, available: true, user_detail_id: 980190965, pet_status: "draft", spicey: nil> was not recognized for preload
    test/policies/app_owner_policy_test.rb:72:in `block in <class:AppOwnerPolicyTest>'
It clearly see's the object ... says we're not loading you ... going to complain in console instead. I'm guessing the makers did this because otherwise you get unexpected results.
The part that bugs me is have never seen this error before - it just showed up - even though I've not updated gemfile etc ... so far as I can tell didn't really touch this section either ... but there must be a thing I tweaked somewhere related.
 
 
1 hour later…
11:10 AM
It's recreatable ... though in a weird way - it registers a relationship id ... which holds the error, but doesn't display it until poked some when you hand test
(byebug) t = pets.includes @policy_dummy.pet
#<Pet::ActiveRecord_Relation:0x00000004af2978>
(byebug) t
#<Pet::ActiveRecord_Relation:0x00000004af2978>
(byebug) t.name
"Pet"
(byebug) pp t
*** ArgumentError Exception:
Ok - might have found it - ... it's kind of a derp move to create the policy_dummy test helper for ONLY testing the ownership policy, I inherited the ownership policy to make everything faster - success - not successful, I need to inherit that policy_dummy each new set of tests ... I think, as I haven't been composing the classes in versus inheriting
 
11:32 AM
or never mind - I know where it came from ... I had previously been testing with array casting - found a way to remove that - or so i thought - that was the change last night
since i'm not testing against the relationship's association, I have to preload or it dies after the 2nd one down the line
 
 
1 hour later…
1:00 PM
So I have 4 options it looks like for using pundit scopes to test & see if something is NOT included in them ...
 
 
1 hour later…
2:22 PM
I just read this bdd stack article for funsies mostly ... can't believe people still have to use an external db cleaner & the test suite for cucumber or rspec doesn't just transaction wrap by top level or incremental tests themselves yet ... dated May 30, 2018
 
2:55 PM
Barlop - off your "Go" comments from that guy ... you read anything he wrote on the D language
 
 
2 hours later…

« first day (1648 days earlier)      last day (1607 days later) »