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
guard "minitest", all_on_start: false, rerun: false do | |
# with Minitest::Spec | |
watch(%r|^test/(.*)_test\.rb|) | |
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_test.rb" } | |
watch(%r|^test/minitest_helper\.rb|) { "test" } | |
watch(%r|^test/support/|) { "test" } | |
# Rails 3.2 | |
watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" } | |
watch(%r|^app/mailers/(.*)\.rb|) { |m| "test/mailers/#{m[1]}_test.rb" } |
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
guard "minitest", all_on_start: false, rerun: false do | |
# with Minitest::Spec | |
watch(%r|^test/(.*)_test\.rb|) | |
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_test.rb" } | |
watch(%r|^test/minitest_helper\.rb|) { "test" } | |
watch(%r|^test/support/|) { "test" } | |
# Rails 3.2 | |
watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" } | |
watch(%r|^app/mailers/(.*)\.rb|) { |m| "test/mailers/#{m[1]}_test.rb" } |
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
FAIL WeedMapsAPI::V1::DispensaryDetailCall::with a clean index#test_0001_returns dispensary details (0.00s) | |
--- expected | |
+++ actual | |
@@ -1,3 +1,3 @@ | |
{:z=>105, :n=>"Dr. Greenthumb Garden Supply 142", :i=>0, :distance=>13, :hits=>0, :a=>"175 River Terrace Fremont Ca 94539", :phone=>"555-555-1142", :rating=>0.0, :y=>-121.9674, :x=>37.5770843, :h=>"10am - 10pm", :d=>"4g eighths, Referrals - free eighth", :link=>"http://example.com/dispensaries/xxx", :kinds=>"2 sativa 1 indica", :photos=>[], :reviews=>[{:z=>63, :name=>"username508", :i=>"", :title=>"This is a cool place.", :r=>5, :comments=>"And I like it.\r | |
-", :when=>"May 5th, 2013"}, {:z=>62, :name=>"username507", :i=>"", :title=>"This is a cool place.", :r=>5, :comments=>"And I like it.\r | |
-", :when=>"May 5th, 2013"}]} | |
+", :when=>"May 6th, 2013"}, {:z=>62, :name=>"username507", :i=>"", :title=>"This is a cool place.", :r=>5, :comments=>"And I like it.\r | |
+", :when=>"May 6th, 2013"}]} | |
(eval):8:in `must_equal' |
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 _git_prompt() { | |
local git_status="`git status -unormal 2>&1`" | |
if ! [[ "$git_status" =~ Not\ a\ git\ repo ]]; then | |
if [[ "$git_status" =~ nothing\ to\ commit ]]; then | |
local ansi=42 | |
elif [[ "$git_status" =~ nothing\ added\ to\ commit\ but\ untracked\ files\ present ]]; then | |
local ansi=43 | |
else | |
local ansi=45 | |
fi |
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
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -15 |
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
describe "with nested collateral" do | |
let(:parent) { create :collateral, attachment: hotplay } | |
before do | |
HotplayViewer.create(user: user, hotplay: hotplay) | |
get :index, format: :json | |
end | |
it { assert_response :success } | |
it { response.headers["Content-Type"].must_include "application/json" } |
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
# simply takes an array and joins it with --'s | |
format_log_line = ->(func) { | |
if func.kind_of?(Array) | |
func.flatten.compact.join(" -- ").concat("\n") | |
else | |
func | |
end | |
} | |
# write a file, functional stylee |
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
alias gl='git log --pretty='\''format:%Cblue%h%d%Creset %ar %Cgreen%an%Creset %s'\'' --graph' |
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
fdebe0c (dreamr/invite_template_save) 2 days ago Dreamr Merge pull request #366 from 01Click/dreamr/buyer_collateral_internal | |
* 9dcc48d (dreamr/buyer_collateral_internal) 2 days ago Dreamr OKelly added internal back into buyer collateral | |
719ba6d 2 days ago Dreamr OKelly added source to collateral form | |
95bd9da 2 days ago Dreamr OKelly removed buyer video | |
6434d9a 2 days ago Dreamr OKelly buyers don't need child collateral | |
5e55876 (dreamr/faster_ci_via_bucket) 3 days ago Dreamr OKelly testing faster ci | |
b8ae03e 3 days ago Danny Bosan fix formatting problem in yml | |
34910bf 3 days ago Danny Bosan whitespace change after travis command | |
2e25271 3 days ago Danny Bosan remove duplicate ENV vars | |
1c6d6f5 3 days ago Danny Bosan secure the last remaining ENVs |
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
<div id="content"> | |
<ul id="hotplay_tabs"> | |
<li class="selected"> | |
<a href="/hotplays/58">Main</a> | |
</li> | |
<li class=""> | |
<a href="/hotplays/58/targeting">Targeting</a> | |
</li> | |
<li class=""> | |
<a href="/hotplays/58/crm">CRM</a> |