Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Return a thread with a block
Browse files Browse the repository at this point in the history
  • Loading branch information
flippingbits committed Dec 11, 2010
1 parent c8fea71 commit f56a275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/titan/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

context "given there are threads available" do
before(:each) do
Titan::Thread.stub!(:all).and_return({'test' => Titan::Thread.new(:id => 'test')})
thread = Titan::Thread.new(:id => 'test') do
1+1
end
Titan::Thread.stub!(:all).and_return({'test' => thread})
end

it "should print the threads as a table" do
Expand Down

0 comments on commit f56a275

Please sign in to comment.