Sha256: 5b098f8c7de3d173818eeb10a77e29390f3b79b798f0a926cab9079e022fdea7

Contents?: true

Size: 261 Bytes

Versions: 2

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true
RSpec::Matchers.define :fail_redirect_and_flash do |path, flash_message|
  match do |response|
    expect(response.status).to eq 302
    expect(response).to redirect_to(path)
    expect(flash[:alert]).to eq flash_message
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyrax-5.0.0 spec/support/matchers/response_matchers.rb
hyrax-5.0.0.rc3 spec/support/matchers/response_matchers.rb