Sha256: 7460435a93b5c6541f5a0cf1d7cf7a8968af9cf4b8c2dcd52e083f7c0eeaa4a9
Contents?: true
Size: 484 Bytes
Versions: 6
Compression:
Stored size: 484 Bytes
Contents
require File.expand_path("helper", File.dirname(__FILE__)) class VisitorTest < ActiveSupport::TestCase if arel? context Kasket::Visitor do should "build select id" do expected = { :attributes=>[[:id, "1"]], :from=>"posts", :index=>[:id], :key=>"kasket-#{Kasket::Version::PROTOCOL}/posts/version=#{POST_VERSION}/id=1" } assert_equal expected, Post.where(:id => 1).to_kasket_query end end end end
Version data entries
6 entries across 6 versions & 1 rubygems