Module: Decko::RestSpecHelper

Defined in:
lib/decko/rest_spec_helper.rb

Overview

for use in REST API specs

Class Method Summary collapse

Class Method Details

.describe_api(&block) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/decko/rest_spec_helper.rb', line 16

def self.describe_api &block
  RSpec.describe CardController, type: :controller do
    routes { Decko::Engine.routes }
    include Capybara::DSL
    include RestSpecMethods
    instance_eval(&block)
  end
end