Merge branch 'master' of https://github.com/capotej/guard into capotej-master

This commit is contained in:
Rémy Coutable 2011-06-23 18:01:32 +02:00
commit f394fef7eb
2 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,7 @@
## Improvements ## Improvements
- Pull request [#94](https://github.com/guard/guard/pull/94): Show backtrace in terminal when a problem with a watch action occurs. ([@capotej][])
- Pull request [#88](https://github.com/guard/guard/pull/88): Write exception trace in the terminal when a supervised task fail. ([@mcmire][]) - Pull request [#88](https://github.com/guard/guard/pull/88): Write exception trace in the terminal when a supervised task fail. ([@mcmire][])
- Color in red the "ERROR:" flag when using `UI.error`. ([@rymai][]) - Color in red the "ERROR:" flag when using `UI.error`. ([@rymai][])
- Issue [#79](https://github.com/guard/guard/issues/79) and Pull request [#82](https://github.com/guard/guard/pull/82): Improve INotify support on Linux. ([@Gazer][] & [@yannlugrin][]) - Issue [#79](https://github.com/guard/guard/issues/79) and Pull request [#82](https://github.com/guard/guard/pull/82): Improve INotify support on Linux. ([@Gazer][] & [@yannlugrin][])

View File

@ -143,8 +143,13 @@ describe Guard::Watcher do
context "with an exception that is raised" do context "with an exception that is raised" do
before(:all) { @guard.watchers = [Guard::Watcher.new('evil.rb', lambda { raise "EVIL" })] } before(:all) { @guard.watchers = [Guard::Watcher.new('evil.rb', lambda { raise "EVIL" })] }
it "displays the error" do it "displays the error and backtrace" do
Guard::UI.should_receive(:error).with("Problem with watch action!") Guard::UI.should_receive(:error) { |msg|
msg.should include("Problem with watch action!")
msg.should include("EVIL")
}
Guard::Watcher.match_files(@guard, ['evil.rb']) Guard::Watcher.match_files(@guard, ['evil.rb'])
end end
end end