Sha256: 5e85a8ff8629b8831be7214bc2299a13f87ced4c611572965f6090b14beb7119

Contents?: true

Size: 154 Bytes

Versions: 7

Compression:

Stored size: 154 Bytes

Contents

module ControllerMacros
  def login_user
    before(:each) do
      @request.env["devise.mapping"] = :user
      sign_in create(:user)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_roles-0.0.12 spec/support/controller_macros.rb
simple_roles-0.0.11 spec/support/controller_macros.rb
simple_roles-0.0.10 spec/support/controller_macros.rb
simple_roles-0.0.9 spec/support/controller_macros.rb
simple_roles-0.0.8 spec/support/controller_macros.rb
simple_roles-0.0.7 spec/support/controller_macros.rb
simple_roles-0.0.6 spec/support/controller_macros.rb