@@ -601,21 +601,18 @@ defmodule Ecto.Integration.RepoTest do
601601 test "get_by(!)" do
602602 post1 = TestRepo . insert! ( % Post { title: "1" , text: "hai" } )
603603 post2 = TestRepo . insert! ( % Post { title: "2" , text: "hello" } )
604- post3 = TestRepo . insert! ( % Post { title: "3" , text: nil } )
605604
606605 assert post1 == TestRepo . get_by ( Post , id: post1 . id )
607606 assert post1 == TestRepo . get_by ( Post , text: post1 . text )
608607 assert post1 == TestRepo . get_by ( Post , id: post1 . id , text: post1 . text )
609608 assert post2 == TestRepo . get_by ( Post , id: to_string ( post2 . id ) ) # With casting
610609 assert nil == TestRepo . get_by ( Post , text: "hey" )
611610 assert nil == TestRepo . get_by ( Post , id: post2 . id , text: "hey" )
612- assert post3 == TestRepo . get_by ( Post , text: nil )
613611
614612 assert post1 == TestRepo . get_by! ( Post , id: post1 . id )
615613 assert post1 == TestRepo . get_by! ( Post , text: post1 . text )
616614 assert post1 == TestRepo . get_by! ( Post , id: post1 . id , text: post1 . text )
617615 assert post2 == TestRepo . get_by! ( Post , id: to_string ( post2 . id ) ) # With casting
618- assert post3 == TestRepo . get_by! ( Post , text: nil )
619616
620617 assert post1 == TestRepo . get_by! ( Post , % { id: post1 . id } )
621618
0 commit comments