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
| # /lib/tasks/rspec.rake | |
| namespace :fork do | |
| task :spec do | |
| fork do | |
| RSpec::Core::Runner.disable_autorun! | |
| RSpec::Core::Runner.run(['spec'], $stderr, $stdout) ? exit(0) : exit(1) | |
| end | |
| Process.wait | |
| raise 'rspec failed' unless $?.exitstatus == 0 | |
| # exiting the fork can cause MySql to drop the connection |
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
| task :teamcity => ['teamcity:clean', 'teamcity:setup', 'barista:brew', 'fork:spec', 'teamcity:cucumber', 'jasmine:ci'] | |
| namespace :teamcity do | |
| task :setup do | |
| RAILS_ENV = 'test' | |
| Rake::Task['db:drop'].invoke | |
| Rake::Task['db:create'].invoke | |
| Rake::Task['db:schema:load'].invoke | |
| 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
| describe MyController do | |
| let(:cookies) { mock('cookies') } | |
| context "when my page is visited" do | |
| it "should delete my cookie" do | |
| controller.stub!(:cookies).and_return(cookies) | |
| cookies.should_receive(:delete).with(cookie, :domain => '.mydomain.com') | |
| get "my_action" |
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
| var z="http://gist.github.com/",y=document.write,x=$("body"),w=$("p.gist").map(function(b,a){a=$(a);var c=$("a",a),u=c.attr("href");if(c.length&&u.indexOf(z)==0)return{p:a,id:u.substring(z.length)}}).get(),v=function(){if(w.length==0)document.write=y;else{var b=w.shift();document.write=function(){document.write=function(a){b.p.replaceWith(a);v()}};x.append('<scr'+'ipt src="'+z+b.id+'.js"></scr'+'ipt>')}};v(); |
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 'rspec' | |
| # is it really this simple? | |
| RSpec::Matchers.define :have_received do |method_name| | |
| match do |actual| | |
| @args ||= [] | |
| @method_name ||= method_name | |
| actual.received_message?(@method_name, *@args) | |
| 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
| if ENV['RAILS_ENV'] == 'test' | |
| task :ci => ['ci:clean', 'ci:setup', 'ci:coffeelint', 'ci:spec', 'ci:guard:jasmine'] | |
| namespace :ci do | |
| task :setup do | |
| Rake::Task['db:drop'].invoke | |
| Rake::Task['db:create'].invoke | |
| Rake::Task['db:schema:load'].invoke | |
| 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
| # zoom | |
| unbind ^M | |
| bind ^M new-window -d -n zoom 'tmux-zoom' |
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
| # Options | |
| set -g default-terminal "screen-256color" | |
| set -g base-index 1 | |
| set -g pane-base-index 1 | |
| set -g set-titles on | |
| set -g status-keys vi | |
| # Faster Command Sequences | |
| set -s escape-time 0 | |
| # mouse can be used to select panes | |
| set -g mouse-select-pane on |
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
| bash -c "[[ -s \"$HOME/.rvm/scripts/rvm\" ]] && . \"$HOME/.rvm/scripts/rvm\" && rvm use --create %RUBY_VERSION%@%GEMSET%" |
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
| * merge/integration | |
| |\ | |
| | * feature/bob merged into integration | |
| | |\ | |
| | | * feature/bob | |
| | * | integration | |
| * | |
| |\ | |
| | * feature/sally merged into integration | |
| | |\ |