Module: AppQuery::RSpec

Defined in:
lib/app_query/rspec.rb,
lib/app_query/rspec/helpers.rb

Overview

RSpec integration for testing query classes.

Provides helpers for testing queries, including CTE isolation, bind/var metadata, and SQL logging.

Examples:

Setup in spec/rails_helper.rb

require "app_query/rspec"

Basic query spec

RSpec.describe ProductsQuery, type: :query do
  it "returns products" do
    expect(described_query.entries).to be_present
  end
end

See Also:

Defined Under Namespace

Modules: Helpers