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
require 'spec_helper' | |
describe EventTypesController do | |
login_user | |
let(:m) {mock_model(EventType)} | |
describe "GET index" do | |
it "assigns all event_types as @event_types" do | |
EventType.should_receive(:all).and_return m |
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
#!/usr/bin/zsh | |
# Outputs a github link that you can click on to see the diff | |
if [[ -n $1 ]]; then | |
git log --pretty=oneline | egrep "Merge branch '${1}.*'.*" | awk '{print "https://github.com/nulogy/cpi/commit/" $1}' | |
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
#!/usr/bin/env ruby | |
if ARGV.size < 2 | |
puts 'grepfactor <search string> <location1>[ <location2> <location3>...]' | |
exit | |
end | |
lines = [] | |
puts 'grepping....' | |
`grep -rn --color #{ARGV[0]} #{ARGV[1..-1].join(" ")}|grep -v swp`.each do |l| |
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
actionmailer (2.3.4) | |
actionpack (2.3.4) | |
activerecord (2.3.4) | |
activeresource (2.3.4) | |
activesupport (2.3.4) | |
authlogic (2.0.11) | |
autocomplete_for (0.1.0) | |
aws-s3 (0.4.0) | |
barby (0.4.0) | |
bcrypt-ruby (2.1.2) |
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
sskirby@Resartus:[system]:~/src/hydra$ rake test TEST=test/ssh_test.rb | |
(in /home/sskirby/src/hydra) | |
[WARNING] The git gem requires git 1.6.0.0 or later, but only found 1.5.4.3. You should probably upgrade. | |
All dependencies seem to be installed. | |
/usr/bin/ruby1.8 -I"lib:lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/ssh_test.rb" | |
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
/home/sskirby/src/hydra/test | |
establishing connection | |
connection established |
NewerOlder