Sha256: 3f816c7605562bfc88ef35b28f3c57c087fd01c7abdb76e21ac7bdbc24e3b946

Contents?: true

Size: 164 Bytes

Versions: 7

Compression:

Stored size: 164 Bytes

Contents

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

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
carrier-0.1.5 spec/support/controller_macros.rb
carrier-0.1.4 spec/support/controller_macros.rb
carrier-0.1.3 spec/support/controller_macros.rb
carrier-0.1.2 spec/support/controller_macros.rb
carrier-0.1.1 spec/support/controller_macros.rb
carrier-0.1.0 spec/support/controller_macros.rb
carrier-0.0.6 spec/support/controller_macros.rb