Skip to content

Commit

Permalink
Add test for Enumerable#only. [test]
Browse files Browse the repository at this point in the history
  • Loading branch information
trans committed Jun 19, 2012
1 parent 9c70bd0 commit aa1da82
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/core/enumerable/test_only.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
covers 'facets/enumerable/only'

test_case Enumerable do

method :only? do

test do
assert( [false].only? )
assert( [1].only? )
assert( ![false, false].only? )
assert( ![].only? )
end

end

end

0 comments on commit aa1da82

Please sign in to comment.