How do you compare date/times in RSpec?
If you do this
expect(Time.now.to_i).to eq Time.new(2014, 4, 2).to_i
~PROJECTS/workties/WWM_ML master ● python main.py --reload_data --all_workers --run_models --server | |
CUR MODE: JOB | |
5 workers started | |
Traceback (most recent call last): | |
File "main.py", line 134, in <module> | |
server.startServer() | |
File "/Users/penn/Projects/workties/WWM_ML/webApp/server.py", line 331, in startServer | |
d.saveModelWeights('jobRec', modelWeights, settings=settings) | |
File "/Users/penn/Projects/workties/WWM_ML/data.py", line 263, in saveModelWeights | |
dconn = dataConnection(settings = settings) |
stats_api_v2_user_job_post GET /api/v2/users/:user_id/job_posts/:id/stats(.:format) api/v2/job_posts#stats {:format=>:json} | |
publish_api_v2_user_job_post POST /api/v2/users/:user_id/job_posts/:id/publish(.:format) api/v2/job_posts#publish {:format=>:json} | |
archive_api_v2_user_job_post POST /api/v2/users/:user_id/job_posts/:id/archive(.:format) api/v2/job_posts#archive {:format=>:json} | |
like_api_v2_user_job_post POST /api/v2/users/:user_id/job_posts/:id/like(.:format) api/v2/job_posts#like {:format=>:json} | |
dislike_api_v2_user_job_post POST /api/v2/users/:user_id/job_posts/:id/dislike(.:format) api/v2/job_posts#dislike {:format=>:json} | |
POST /api/v2/users/:user_id/job_posts/:id/like/users/:candidate_id(.:format) api/v2/jo |
-----> Precompiling asset files | |
$ RAILS_ENV="staging" bundle exec rake assets:precompile RAILS_GROUPS=assets | |
WARNING: Use strings for Figaro configuration. 6379 was converted to "6379". | |
W, [2014-12-18T21:31:42.744936 #31901] WARN -- : Initializing 2 workers | |
rake aborted! | |
EOFError: end of file reached | |
/var/www/wwm/tmp/build-141895628531110/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/core_ext/marshal.rb:6:in `load' | |
/var/www/wwm/tmp/build-141895628531110/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/core_ext/marshal.rb:6:in `load_with_autoloading' | |
/var/www/wwm/tmp/build-141895628531110/vendor/bundle/ruby/2.1.0/gems/sprockets-derailleur-0.0.9/lib/sprockets-derailleur/manifest.rb:45:in `block (3 levels) in compile' | |
/var/www/wwm/tmp/build-141895628531110/vendor/bundle/ruby/2.1.0/gems/sprockets-derailleur-0.0.9/lib/sprockets-derailleur/manifest.rb:44:in `each' |
function! VimNavigate(direction) | |
try | |
execute 'wincmd ' . a:direction | |
catch | |
echohl ErrorMsg | echo 'E11: Invalid in command-line window; <CR> executes, CTRL-C quits: wincmd k' | echohl None | |
endtry | |
endfunction | |
let g:location_left = 0 | |
let g:location_right = 0 |
function! VimNavigate(direction) | |
try | |
execute 'wincmd ' . a:direction | |
catch | |
echohl ErrorMsg | echo 'E11: Invalid in command-line window; <CR> executes, CTRL-C quits: wincmd k' | echohl None | |
endtry | |
endfunction | |
function! DetermineLocation() | |
let nr = winnr() |
{ | |
job_position: 'Visual Designer' | |
summary: 'Visual Designers weave iconography, typography, color, space and texture together to help our users successfully navigate our products.' | |
requirements: 'Create and and iterate on assets that reflect a brand, enforce a language, and inject beauty. Push creativity, challenge established thinking, and discover new ways of approaching a problem.' | |
salary_range: '80k-115k' | |
commitments: 'Full Time' | |
location: 'Mountain View, CA' | |
score: 89 | |
bounty_currency_symbol: '$' | |
bounty: '200' |
{ | |
job_position: 'Visual Designer' | |
summary: 'Visual Designers weave iconography, typography, color, space and texture together to help our users successfully navigate our products.' | |
requirements: 'Create and and iterate on assets that reflect a brand, enforce a language, and inject beauty. Push creativity, challenge established thinking, and discover new ways of approaching a problem.' | |
salary_range: '80k-115k' | |
commitments: 'Full Time' | |
location: 'Mountain View, CA' | |
score: 89 | |
bounty_currency_symbol: '$' | |
bounty: '200' |
doctype html | |
html | |
head | |
meta content='text/html; charset=UTF-8' http-equiv='Content-Type' | |
body | |
p Hello #{@user.name}, | |
p Welcome to the WorkTies Job Matching platform. We know that navigating your next steps in your career can be a roller-coaster. We want to make it a smoother ride. In addition to the mobile app, we also have a web platform available for you to update your profile, upload your resume, and for viewing on a larger screen at <a href="http://workties.us/">http://workties.us/</a>. The login information is the same as the one you created on the mobile app. Do reach out if you have any questions. |
doctype html | |
html | |
head | |
meta content='text/html; charset=UTF-8' http-equiv='Content-Type' | |
body | |
p Dear #{@user.name}, | |
p Welcome to the WorkTies Recruitment platform. We are excited that you have chosen us and want to ensure that you obtain the candidates you seek. Below is a quick link to your dashboard, the portal to all your job posts and matches. Do reach out if you have any questions. |