spec/autotest-tmux_spec.rb in autotest-tmux-1.3.0 vs spec/autotest-tmux_spec.rb in autotest-tmux-1.4.0

- old
+ new

@@ -78,9 +78,15 @@ context "With #{name}, all examples passed" do subject { Autotest::Tmux.parse_output('1 example, 0 failures', name) } it { should eql({:message => 'All Green', :color => :green}) } end + + context "With #{name}, a syntax error occured" do + error = "syntax error, unexpected $end, expecting keyword_end (SyntaxError)" + subject { Autotest::Tmux.parse_output(error, name) } + it { should eql({:message => 'Unable to run tests', :color => :red}) } + end end context 'With FooBar' do subject { Autotest::Tmux.parse_output('1 example, 0 failures', 'FooBar') } it { should eql({:message => 'Unknown class. (FooBar)'}) }