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 != 1 | |
puts "what branch?" | |
exit 1 | |
end | |
`git branch -D #{ARGV[0]}` | |
`git push origin :#{ARGV[0]}` |
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
/** | |
* An extension that always calls success when a spy is called. | |
* | |
* @example | |
* spyOn(foo, 'bar').andCallSuccessWith("baz"); | |
* var options = { | |
* success: jasmine.createSpy(); | |
* } | |
* foo.bar(options); | |
* expect(options.success).toBeCalledWith("baz"); |
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
/** | |
* Matcher that mimics toHaveBeenCalledWith, except it ignores the first argument (and isn't robust enough to handle more than one call) | |
* | |
* @example | |
* | |
*/ | |
jasmine.Matchers.prototype.toHaveBeenTriggeredWith = function() { | |
var expectedArgs = jasmine.util.argsToArray(arguments); | |
if (!jasmine.isSpy(this.actual)) { |