Sha256: 5f35a133b10f6dc44db482afa1a30958e646d35168159f997dba88ca2b5b065f
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
module Refinery module Api module TestingSupport module Setup def sign_in_as_admin! let!(:current_api_user) do user = stub_model(Refinery::Api.user_class) allow(user).to receive_message_chain(:roles, :pluck).and_return(["superuser"]) allow(user).to receive(:has_role?).with("superuser").and_return(true) user end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-api-1.0.0.beta | lib/refinery/api/testing_support/setup.rb |