This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_context 'api session' | |
let(:path) { "/api/v1/#{order_id}/line" } | |
let(:order_id) { 456 } | |
context 'when do some complex things' do | |
let(:order) { FactoryBot.create(:order) } | |
let(:order_id) { order.id } | |
let(:item) { LineItem.last } | |
let(:valid_params) do | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Configurable | |
def config(*attrs) | |
@configuration ||= Struct.new(*attrs).new | |
end | |
def configure | |
yield(@configuration) if block_given? | |
end | |
end |
OlderNewer