Skip to content

Using Shark RSpec helpers

Jörgen Dahlke edited this page Jan 10, 2018 · 1 revision

RSpec

# spec_helper.rb
require "bima-shark-sdk/rspec"

Contact Service

before do
  SharkSpec.stub_contact_service
end

Form Service

SharkSpec.form_version({})                 # returns Shark::FormService::V2::FormVersion

SharkSpec.form_inputs({ user_id: "1234"})  # returns [Shark::FormService::V2::FormInput]