Sha256: 99af16c2f3c15ae5153fb6b7096674a73b802d7b5a4bd9cd817d4094119d272e
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true module Controllers module JsonHelpers def json @json ||= JSON.parse(response.body) end end end RSpec.shared_examples "an untrusted action" do it "should redirect" do expect(response.status) .to redirect_to "/" end it "should redirect to root path" do expect(flash[:alert]) .to eq "Your authenticity token expired. Please try again." end end
Version data entries
5 entries across 5 versions & 1 rubygems