Module: Trailblazer::Test::Suite::Spec

Defined in:
lib/trailblazer/test/suite.rb

Overview

Defaults so tests run without tweaking (almost).

Class Method Summary collapse

Class Method Details

.included(includer) ⇒ Object



9
10
11
12
13
14
# File 'lib/trailblazer/test/suite.rb', line 9

def self.included(includer)
  includer.let(:operation)            { raise "Trailblazer::Test: `let(:operation) { ... }` is missing" }
  includer.let(:key_in_params)        { false }
  includer.let(:expected_attributes)  { {} } # You need to override this in your tests.
  includer.let(:default_ctx)          { {} }
end