I am installing ceiling lights on my attic that has only fiberglass insulation. I needed to splice some cables half way to the fixture box. I just want to verify that I've done so properly.
Here is what I've done: I've spliced the cables with the plastic caps and encased the plastic in this box (which is a metallic fixture box):
Then I secured the cables using the clamps in the box, secured the box to the joist and put a lid on the box.
Is this okay? I know some say that one should use a junction box but I had the fixture box with the lid handy so I figured it doesnt make much of a difference but I just want to make sure.