Sha256: 98ae67d3ce2a9bb35ff5ba7050ba8e616be1d1b756a2f055936c7920071e8ac3
Contents?: true
Size: 716 Bytes
Versions: 4
Compression:
Stored size: 716 Bytes
Contents
require 'spec_helper' module GitSu describe Runner do let(:output) { double('output') } let(:runner) { Runner.new(output) } describe "#run" do it "runs the block it's passed" do ran = false runner.run { ran = true } ran.should be true end it "catches interruptions" do output.should_receive(:puts).with "Interrupted" runner.run { raise Interrupt } end it "prints errors" do output.should_receive(:puts).with "Bad stuff happened" runner.run { raise "Bad stuff happened" } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gitsu-1.0.0 | spec/gitsu/runner_spec.rb |
gitsu-0.0.3 | spec/gitsu/runner_spec.rb |
gitsu-0.0.2 | spec/gitsu/runner_spec.rb |
gitsu-0.0.1 | spec/gitsu/runner_spec.rb |