We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9512335 commit 66c3cb8Copy full SHA for 66c3cb8
test/models/listing_test.rb
@@ -1,7 +1,10 @@
1
require "test_helper"
2
3
class ListingTest < ActiveSupport::TestCase
4
- # test "the truth" do
5
- # assert true
6
- # end
+ test "ransack payload" do
+ listing = Listing.create(url: "https://example.com", payload: { page_title: "My app" })
+
7
+ assert_includes Listing.ransack(url_cont: "exam").result, listing
8
+ assert_includes Listing.ransack(payload_cont: "My app").result, listing
9
+ end
10
end
0 commit comments