Sha256: 0118ff7f0926d9b33aff6eb0d2994c98f33f382aa0fc68fdf57d505a67041dbd

Contents?: true

Size: 231 Bytes

Versions: 113

Compression:

Stored size: 231 Bytes

Contents

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

113 entries across 113 versions & 3 rubygems

Version Path
hyrax-2.6.0 spec/support/matchers/response_matchers.rb
hyrax-3.0.0.pre.rc1 spec/support/matchers/response_matchers.rb
hyrax-3.0.0.pre.beta3 spec/support/matchers/response_matchers.rb
hyrax-2.5.1 spec/support/matchers/response_matchers.rb
hyrax-2.5.0 spec/support/matchers/response_matchers.rb
hyrax-3.0.0.pre.beta2 spec/support/matchers/response_matchers.rb
hyrax-2.4.1 spec/support/matchers/response_matchers.rb
hyrax-3.0.0.pre.beta1 spec/support/matchers/response_matchers.rb
hyrax-2.4.0 spec/support/matchers/response_matchers.rb
hyrax-2.3.3 spec/support/matchers/response_matchers.rb
hyrax-2.3.2 spec/support/matchers/response_matchers.rb
hyrax-2.3.1 spec/support/matchers/response_matchers.rb
hyrax-1.1.1 spec/support/matchers/response_matchers.rb
hyrax-2.3.0 spec/support/matchers/response_matchers.rb
hyrax-2.0.3 spec/support/matchers/response_matchers.rb
hyrax-2.2.4 spec/support/matchers/response_matchers.rb
hyrax-2.2.3 spec/support/matchers/response_matchers.rb
hyrax-2.2.2 spec/support/matchers/response_matchers.rb
hyrax-2.2.1 spec/support/matchers/response_matchers.rb
hyrax-2.2.0 spec/support/matchers/response_matchers.rb