Sha256: 5bd661e406187fc42fa4d28fe50df5a223b850e32d53dd988d1e0b06713ee508
Contents?: true
Size: 617 Bytes
Versions: 6
Compression:
Stored size: 617 Bytes
Contents
RSpec.describe "including controller extensions" do describe "An application controller" do let(:controller) do Class.new(ActionController::Base) end it "includes the controller extensions" do expect(controller.ancestors).to include(ROM::Rails::ControllerExtension) end end if defined?(ActionController::API) describe "An API controller" do let(:controller) do Class.new(ActionController::API) end it "includes the controller extensions" do expect(controller.ancestors).to include(ROM::Rails::ControllerExtension) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems