Hi there, are there any examples of how to set up ...
# pactflow
n
Hi there, are there any examples of how to set up a sign_in with device with pact ruby? Trying to use sign in but I think because pact is not of type request then it does not work. In the rails_helper we have this line that is needed, i've tried using type to be pact but still no luck.
config.include Devise::Test::IntegrationHelpers, type: :request
This is the code I have atm:
Copy code
require "rails_helper"

Pact.provider_states_for "testDemo_platform_payment_service" do
  provider_state "Order items exist" do
    set_up do
      user = User.create!(
        username: "admin1",
        email: "<mailto:example@applyboard.net|example@applyboard.net>",
        role: "admin",
        password: "example",
        password_setup: true,
        blocked: false,
        has_accepted_terms: false,
        has_accepted_privacy: false,
      )
      sign_in user
    end
  end
end