Permalink
Browse files

Add test for focused line spec running

  • Loading branch information...
1 parent 4974e58 commit 8b63f3a9890a95bc1d24e1c36a005fd183e95f64 @jimweirich committed Sep 6, 2012
Showing with 17 additions and 0 deletions.
  1. +8 −0 examples/integration/focused_line_spec.rb
  2. +9 −0 examples/other/line_example.rb
@@ -0,0 +1,8 @@
+require 'spec_helper'
+
+describe "Focused Line" do
+ it "runs only a single test" do
+ output = `rspec examples/other/line_example.rb:7`
+ output.should_not =~ /FIRST/
+ end
+end
@@ -0,0 +1,9 @@
+require 'spec_helper'
+
+describe "Line Spec" do
+
+ Then { puts "FIRST" }
+
+ Then { puts "SECOND" }
+
+end

0 comments on commit 8b63f3a

Please sign in to comment.