I hereby claim:
- I am blowmage on github.
- I am blowmage (https://keybase.io/blowmage) on keybase.
- I have a public key whose fingerprint is 7FC4 001A B3B0 FFBA 60FD E278 861B B5BD 2A72 06AF
To claim this, I am signing this object:
| namespace :db do | |
| namespace :fixtures do | |
| desc "Dumps the current environment's database into fixtures (uses FIXTURES_PATH)" | |
| task dump: :environment do | |
| Rails.application.eager_load! | |
| models = ApplicationRecord.descendants.reject { |model| model.primary_key.nil? } | |
| fixture_files = ENV["FIXTURES"].to_s.split(",") | |
| if fixture_files.any? | 
| namespace :docs do | |
| desc "Updates the documentation on the gh-pages branch" | |
| task :update do | |
| branch = `git symbolic-ref --short HEAD`.chomp | |
| if "master" != branch | |
| puts "You are on the #{branch} branch. You must be on the master branch to run this rake task." | |
| exit | |
| end | |
| require_relative "../lib/my_gem/version.rb" | 
| diff --git a/lib/minitest/spec.rb b/lib/minitest/spec.rb | |
| index 40b5e6a..c5b334d 100644 | |
| --- a/lib/minitest/spec.rb | |
| +++ b/lib/minitest/spec.rb | |
| @@ -22,6 +22,25 @@ module Kernel # :nodoc: | |
| ## | |
| # Describe a series of expectations for a given target +desc+. | |
| # | |
| + # You can describe your test by passing the object under test: | |
| + # | 
I hereby claim:
To claim this, I am signing this object:
| require "minitest/autorun" | |
| require "thor" | |
| require "fakefs/safe" | |
| class SampleGenerator < Thor::Group | |
| include Thor::Actions | |
| def start *args | |
| template "foo.erb", "new/path/here/foo.rb" | |
| end | |
| end | 
| # my preferred prompt - ☣ [pairwithme:rails4] $ | |
| PS1='\[\e[1;31m\]☣ [\W$(if [ -n "$OMG_NAME" ]; then eval "echo :$OMG_NAME"; fi)] $\[\e[0m\] ' | |
| # chruby configuration | |
| source /usr/local/share/chruby/chruby.sh | |
| source /usr/local/share/chruby/auto.sh | |
| # set default ruby | |
| chruby 2.1 | 
| module MiniTest | |
| module Assertify | |
| module Lifecycle # :nodoc: | |
| # Hook into Minitest's Lifecycle to alias methods when tests are run. | |
| def before_setup # :nodoc: | |
| self.class.public_instance_methods.grep(/\Arefute_/).each do |method| | |
| new_method = method.to_s.sub("refute_", "assert_not_").to_sym | |
| class_eval do | |
| alias_method new_method, method | |
| end | 
| [vagrant@precise32:/vagrant (master)]$ echo "using search_exec" | |
| using search_exec | |
| [vagrant@precise32:/vagrant (master)]$ rspec spec/models/user_search_spec.rb | |
| /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead. | |
| /vagrant/vendor/gems/message_bus/lib/message_bus.rb:130: warning: already initialized constant ENCODE_SITE_TOKEN | |
| == Seed from /vagrant/db/fixtures/post_action_types.rb | |
| - PostActionType {:id=>1, :name_key=>"bookmark", :is_flag=>false, :position=>1} | |
| - PostActionType {:id=>2, :name_key=>"like", :is_flag=>false, :icon=>"heart", :position=>2} | |
| - PostActionType {:id=>3, :name_key=>"off_topic", :is_flag=>true, :position=>3} | 
| class TasksController < ApplicationController | |
| def update | |
| if @task.update_attributes(params[:task]) | |
| tracker = PostSaveTaskTracker.new(@task) | |
| TaskPusher.new(tracker, socket_id).push_changes | |
| TaskMailSender.new(tracker, current_user).deliver_email | |
| # success response | |
| else | |
| # failure respond | |
| end |