spec/testrbl_spec.rb in testrbl-0.8.0 vs spec/testrbl_spec.rb in testrbl-0.9.0
- old
+ new
@@ -344,11 +344,21 @@
describe "a-c" do
it "b./_-d" do
puts "-EFG-"
end
+
+ it("f-g") do
+ puts "-HIJ-"
+ end
end
+
+ describe("h-j") do
+ it "i-k" do
+ puts "-KLM-"
+ end
+ end
RUBY
end
def run_line(number)
result = testrbl "a_test.rb:#{number}"
@@ -368,10 +378,18 @@
end
it "runs nested it" do
run_line("13").should == ["CDE"]
end
+
+ it "runs it with parens" do
+ run_line("28").should == ["HIJ"]
+ end
+
+ it "runs describe with parens" do
+ run_line("33").should == ["KLM"]
+ end
end
context "multiple files / folders" do
before do
write "Gemfile", <<-RUBY
@@ -621,10 +639,10 @@
it "finds complex" do
call(" it \"xX ._-.. ___ Xx\" do\n").should == [" ", "#test_\\d+_xX \\._\\-\\.\\. ___ Xx$"]
end
- it "finds with pecial characters" do
+ it "finds with special characters" do
call(" it \"hmm? it's weird\\\"?\" do\n").should == [" ", "#test_\\d+_hmm\\? it.s weird\\\\\"\\?$"]
end
end
it "finds minitest describe do calls" do