Skip to content

Instantly share code, notes, and snippets.

# spec/support/auth_helper.rb
module AuthHelper
def admin_login
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials('username', 'password')
end
end
# spec/support/auth_helper.rb
module AuthHelper
def admin_login
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials('username', 'password')
end
end
def self.find(*args)
ret = nil
if args.first.is_a? Symbol
if args.first == :all
ret = Array.new
if args[1].is_a? Hash
Company.all.each do |a|
tests = Array.new
args[1][:conditions].each do |atr, cond|
if a.read_attribute(atr) != cond
Logging implemented for:
- campaign/step_2 on offer update
- campaign/step_4 on offer update
- campaign/step_5 on campaign create, invoice address
- offer/confirmation on campaign status change
- vetting/accept on campaign review
- vetting/approve
- vetting/reject
;;; gist.el --- Emacs integration for gist.github.com
;; Author: Christian Neukirchen <purl.org/net/chneukirchen>
;; Maintainer: Chris Wanstrath <[email protected]>
;; Contributors:
;; Will Farrington <[email protected]>
;; Michael Ivey
;; Phil Hagelberg
;; Dan McKinley
;; Version: 0.5