Skip to content

Commit

Permalink
spec example moves near its friends
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bruce committed Apr 16, 2012
1 parent f4d91da commit ee6b6b2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/test_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ def edit(path)
vim.edit path
end

describe "running when there is no file open" do
it "does not send anything to the pipe" do
run_test
pipe.should == ''
end
end

shared_examples_for "the whole spec is run" do
context "(shared)" do
let(:spec_filename) { 'example_spec.rb' }
Expand Down Expand Up @@ -89,6 +82,13 @@ def edit(path)
end
end

describe "running when there is no file open" do
it "does not send anything to the pipe" do
run_test
pipe.should == ''
end
end

describe "running a whole spec from the spec file" do
let(:filename) { 'example_spec.rb' }
it_behaves_like "the whole spec is run"
Expand Down

0 comments on commit ee6b6b2

Please sign in to comment.