Skip to content

Instantly share code, notes, and snippets.

View Verkalets's full-sized avatar
🚀
Deliver amazing products with best engineering teams

Ivan Verkalets Verkalets

🚀
Deliver amazing products with best engineering teams
View GitHub Profile
require 'spec_helper'
describe User do
let(:user) { FactoryGirl.build(:user) }
let(:authentication) { FactoryGirl.build(:authentication) }
describe "#create" do
it "enqueues welcome email" do
Sidekiq::Extensions::DelayedMailer.jobs.should be_empty
user.save
class City
include Mongoid::Document
include Mongoid::Timestamps
include Geocoder::Model::Mongoid
field :name, type: String
field :hotel_id, type: String
field :description, type: String
field :user_email, type: String
field :min_price, type: String