While trying out travis-ci I stumbled upon a mysterious behavior (at least for me):
RAILS_ENV=test rake db:drop db:setup spec RAILS_ENV=test rake db:drop db:setup RAILS_ENV=test rake spec
The one-liner results in errors (like
ActiveRecord can’t find the database tables), whereas the second version runs without any problems. I disabled the
database_cleaner gem, but it had no effect. Any hints, where the problem is?
Wow, with three simple steps I reclaimed my inbox again:
Pretty simple and obvious, eh? I spend less time in my inbox, but I don’t think I will miss anything important. Yeah!
Given a role exists with a Name of "admin" And the following user exists: | First name | Last name | Role | | John | Doe | Name: admin |
The original post is part of the Practical Cucumber series. It’s worth reading it!Source: collectiveidea.com
Although the Git support in RubyMine is pretty good, I still switch to the command line regularly. So aliases for the most used commands are very useful and time-saving. Unfortunately I miss them so much when I’m working another machine, so I decided to make here I note to myself.
~/.gitconfig: [alias] hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short yes = "log --since='yesterday' --pretty=oneline" co = checkout br = branch ci = commit st = status
I especially like the
hist and the
yes alias, to get a quick overview what happened lately.