Send email asynchroniously using Sidekiq.
Create your mailer us usual:
| /* based on dbox.us */ | |
| body { | |
| background: linear-gradient(238deg, #fd8800, #fd008f, #9700fd, #003dfd, #05c7e6, #4bd58d); | |
| background-size: 1200% 1200%; | |
| -webkit-animation: rainbow 30s ease infinite; | |
| animation: rainbow 30s ease infinite; | |
| } | |
| @-webkit-keyframes rainbow { | |
| 0% { background-position: 0% 50% } | |
| 50% { background-position: 100% 50% } |
| # Variables | |
| SRC=src | |
| DIST=dist | |
| # Destroy the final targets | |
| clean: | |
| rm -rf $(DIST)/* | |
| # Compile the final targets | |
| all: |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
| # 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") |