Skip to content

Instantly share code, notes, and snippets.

View yanxiangw's full-sized avatar
🏠
Working from home

Yanxiang Wang yanxiangw

🏠
Working from home
  • Melbourne, VIC, Australia
View GitHub Profile
# spec/lib/tasks/notification_rake_spec.rb
require 'spec_helper'
describe 'notifications:weekly' do
include_context "rake"
let(:users){ [double(:user)] }
let(:user_deliveries){ double(:user_deliveries) }
before{ User.stub(:all).and_return( users ) }