Browse files

be sure to include descriptions for inline tests

  • Loading branch information...
1 parent 14882a4 commit 8b13f6361ab3969eb1d597f8979331e6ed560f27 @geemus geemus committed Mar 14, 2011
Showing with 6 additions and 1 deletion.
  1. +1 −1 Gemfile.lock
  2. +2 −0 lib/shindo.rb
  3. +2 −0 tests/bin_tests.rb
  4. +1 −0 tests/data/success
View
2 Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- shindo (0.3.1)
+ shindo (0.3.2)
formatador (>= 0.1.1)
GEM
View
2 lib/shindo.rb
@@ -81,6 +81,8 @@ def tests(description, tags = [], &block)
rescue => error
display_error(error)
end
+ else
+ display_description(description)
end
else
display_description("[light_black]#{description}[/]")
View
2 tests/bin_tests.rb
@@ -23,6 +23,8 @@
tests('success') do
@output = bin(path('success'))
includes('+ success') { @output }
+ includes('inline tests') { @output }
+ includes('+ returns false') { @output }
tests('$?.exitstatus').returns(0) { $?.exitstatus }
end
View
1 tests/data/success
@@ -1,3 +1,4 @@
Shindo.tests do
test('success') { true }
+ tests('inline tests').returns(false) { false }
end

0 comments on commit 8b13f63

Please sign in to comment.