How to get Rspec test in Colour for windows on MINGW


One of the dev’s at my work figured it out.

You need to

  1. Download Ansicon from http://adoxa.110mb.com/ansicon/ and unzip it
  2. Use a cmd prompt and navigate to where you unzipped it.
  3. CD into the x64 directory (unless you have a 32bit machine, then use the x86 one)
  4. Type “ansicon.exe –i” (without quotes)
  5. Open a new cmd prompt

http://qastuffs.blogspot.com/2011/02/how-to-install-ansicon-for-cucumber-to.html

http://www.itauthor.com/2011/07/09/rails-chronicles-part-2/

confirmable + omniauthable, skip confirmation if OAuth sign-up Options


In the find_for_facebook_oauth action in the User model , I used the
confirm! before saving it…

def self.find_for_facebook_oauth(access_token,
signed_in_resource=nil)
data = access_token[‘extra’][‘user_hash’]
if user = User.find_by_email(data[“email”])
user
else # Create an user with a stub password.
user = User.new(:email => data[“email”], :password =>
Devise.friendly_token[0,20],  :agreement_status => true)
user.confirm!
user.save!
user
end
end

http://groups.google.com/group/plataformatec-devise/browse_thread/thread/9d36b3ea8e1f3d96?pli=1