Skip to content

Instantly share code, notes, and snippets.

@HatemMahmoud
HatemMahmoud / rails-asmallorange.sh
Created July 8, 2012 06:52
Rails deployment to ASmallOrange
ssh [email protected]
git clone git://github.com/myname/myapp.git
cd myapp/
@HatemMahmoud
HatemMahmoud / test-rails-email
Last active December 23, 2015 14:39
Testing ActionMailer configuration using Rails console
$ rails c
class MyMailer < ActionMailer::Base
default :from => '[email protected]'
def test_email
mail(:to => "[email protected]", :subject => 'Testing from Rails console', :body => 'This is a test email')
end
end
MyMailer::test_email.deliver!
@HatemMahmoud
HatemMahmoud / rspec-report.sh
Last active August 29, 2015 14:02
Rspec report
# List group and example names
rspec spec --format d
# Generate HTML report
rspec spec --format html -o "public/rspec-report.html"