changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/pre_commit/spec/pre_commit/pre_commit_spec.rb

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'
2
3##
4# This is not a complete specification of PreCommit, but
5# just a collection of bug fix regression tests.
6describe "The helper method PreCommit#silent_sh" do
7 before do
8 @pre_commit = PreCommit.new(nil)
9 end
10
11 # bug in r1802
12 it "should return the command output" do
13 @pre_commit.send(:silent_sh, "echo foo").should ==("foo\n")
14 end
15end