Skip to content

Instantly share code, notes, and snippets.

@tanaka51
tanaka51 / rspec-syntax-cheat-sheet.rb
Created April 26, 2012 10:13 — forked from irohiroki/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@tanaka51
tanaka51 / gist:1598915
Created January 12, 2012 05:14
Passenger error on CentOS 5.6, Apache2
[Wed Jan 11 01:59:59 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog: it seems to have crashed during startup for an unknown reason, with exit code 1
[Wed Jan 11 01:59:59 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 11 01:59:59 2012] [notice] Digest: done
[ pid=16082 thr=3086060128 file=ext/apache2/Hooks.cpp:1378 time=2012-01-11 01:59:59.922 ]: Initializing Phusion Passenger...
[ pid=16084 thr=3086673616 file=ext/common/Watchdog.cpp:1073 time=2012-01-11 01:59:59.927 ]: Cannot change the directory '/tmp/passenger.1.0.16082/generation-0/buffered_uploads' its UID to 48 and GID to 48: Operation not permitted (1)
in 'void Passenger::ServerInstanceDir::Generation::create(bool, const std::string&, const std::string&, uid_t, gid_t)' (ServerInstanceDir.h:76)