- Building and architecting teams, software, processes, and systems
- Leadership, community engagement, team building
- Continuous learning, mentorship, building learning cultures
This file contains hidden or 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 rvmrc { echo "rvm use 1.9.2@$1 --create" >> .rvmrc; cd . } | |
| function rvmgg { rvm gemset use global } |
This file contains hidden or 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 DeprecationHelpers | |
| def deprecated_in_favor_of(new_method_name) | |
| warning = "[DEPRECATION] '##{deprecated_method_name}' " | |
| warning << "has been deprecated.\n" | |
| warning << "Please use '##{new_method_name.to_s}' instead." | |
| logger.warn(warning) | |
| end | |
| protected | |
| def deprecated_method_name |
This file contains hidden or 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
| context "POST edit_subscriptions" do | |
| setup do | |
| fake_login | |
| @user.subscriptions << Factory(:subscription) | |
| @preference = Factory(:reminder_preference) | |
| @user.reminder_preferences << @preference | |
| post :edit_subscriptions, :id => @user.id, "#{@preferences.id}_email" => "on" | |
| end | |
| should "empty the users reminder preferences" do | |
| @user.reload |
This file contains hidden or 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
| class PublicController < ApplicationController | |
| assume(:search) { Game.search(params[:search]) } | |
| assume(:results) { search.current_scope } | |
| assume(:user_games) { current_user.games } | |
| def index | |
| end | |
| end |
This file contains hidden or 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
| def [your_conventional_method_name_here] | |
| @foo ||= Factory(:foo) | |
| @foo.authorize! | |
| end |
This file contains hidden or 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
| <P> </P> <P><STRONG><SPAN style="FONT-SIZE: 16pt">Contact Foo Company</SPAN></STRONG></P> <P><EM><STRONG><U><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Customer Service Support</SPAN></U></STRONG></EM></P> <P><FONT size=2>For your convenience, you may contact Foo Company by phone, by email, or by mail. </FONT><SPAN><FONT size=2> Our customer service representatives will gladly respond to your inquiries.</FONT> </SPAN></P> <P> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <P><STRONG><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Customer Service Phone Support:</SPAN></STRONG><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><SKYPE:SPAN onmouseup="javascript:skype_tb_imgOnOff(this,1,'0',true,16,'');return skype_tb_stopEvents();" class=skype_tb_injection onmousedown="javascript:skype_tb_imgOnOff(this,2,'0',true,16,'');return skype_tb_stopEvents();" id=softomate_highlight_0 onmouseover="javascript:skype_tb_imgOnOff(this,1,'0',true,16,'');" title="Call this p |
This file contains hidden or 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 CustomMacros | |
| def it_should_include_module(expected) | |
| it "should include #{expected}" do | |
| should include_module(expected) | |
| end | |
| end | |
| def it_should_not_include_module(expected) | |
| it "should not include #{expected}" do | |
| should_not include_module(expected) |
This file contains hidden or 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
| /home/c/.rvm/gems/ruby-1.8.7-p248/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:320:in `factory_by_name': No such factory: prize_list (ArgumentError) | |
| from /home/c/.rvm/gems/ruby-1.8.7-p248/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:260:in `create' | |
| from /home/c/Sites/ppsb_platform/spec/factories/prize_list_line_item.rb:2 | |
| from /home/c/.rvm/gems/ruby-1.8.7-p248/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:50:in `define' | |
| from /home/c/Sites/ppsb_platform/spec/factories/prize_list_line_item.rb:1 | |
| from /home/c/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
| from /home/c/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
| from /home/c/Sites/ppsb_platform/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' | |
| from /home/c/Sites/ppsb_platform/spec/spec_helper.rb:89 | |
| from /home/c/Sites/ppsb_platform/spec/spec_helper.rb:89:in `each' |