This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserMailer.job_apply_reject(job_apply).deliver | |
expect(ActionMailer::Base.deliveries.last.encoded).to include 'Company Lorem ipsum' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redirect_to action: :edit, id: @company.id, params: {tab: 'locations' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recruiters_attributes: {'1234567' => attributes_for(:recruiter)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EDITOR="mate -w" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make symlink: | |
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime | |
And then open and edit .bash_profile: | |
export EDITOR='sublime -w' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This implementation causes error: | |
# ArgumentError: wrong number of arguments (0 for 1..3) | |
# config.ru:10:in `instance_eval' | |
# config.ru:10:in `initialize' | |
# config.ru:26:in `new' | |
# config.ru:26:in `block in inner_app' | |
# /Users/ograbek/.rvm/gems/ruby-2.1.2@owning_rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' | |
# /Users/ograbek/.rvm/gems/ruby-2.1.2@owning_rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Heroku | |
module Rake | |
class Task | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
end | |
def self.[](name) | |
Heroku::Rake::Task.new(name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deploy(env) { | |
var bucketSuffix = env === 'staging' ? '-staging' : ''; | |
var publisher = $.awspublish.create({ | |
key: 'xxxx', | |
secret: 'xxx', | |
bucket: 'picaly.co' + bucketSuffix, | |
region: 'eu-west-1' | |
}); | |
return gulp.src('./dist/**/*') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var customOpts = { | |
entries: [config.jsES6MainFile], | |
debug: true, | |
transform: ['babelify'] | |
}; | |
var opts = _.assign({}, watchify.args, customOpts); | |
var b = watchify(browserify(opts)); | |
gulp.task('scripts', bundle); | |
b.on('update', bundle); |