changeset 15: | 64acf98d15f4 |
author: | moriq@moriq.com |
date: | Mon Mar 10 10:12:58 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | add plugins rspec |
1require File.dirname(__FILE__) + '/../spec_helper.rb'23##4# This is not a complete specification of PreCommit, but5# just a collection of bug fix regression tests.6describe "The helper method PreCommit#silent_sh" do7 before do8 @pre_commit = PreCommit.new(nil)9 end1011 # bug in r180212 it "should return the command output" do13 @pre_commit.send(:silent_sh, "echo foo").should ==("foo\n")14 end15end