This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo ln -s ~/nginx.conf unicorn.conf | |
upstream app_server { | |
server unix:/tmp/unicorn_padrino.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
charset utf-8; | |
server_name db.innshine.com; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# Somewhere in spec_helper.rb | |
def login_as(role = nil) | |
if (role) | |
acct = Account[:role => role] || Account.new(:name => 'Foo', :surname => role, :email => "#{role}@none.org", :role => role) | |
Project::Admin.any_instance.stub(:current_account).and_return(acct) | |
Project::Admin.any_instance.stub(:logged_in?).and_return(true) | |
Project::App.any_instance.stub(:current_account).and_return(acct) |