Skip to content

Commit

Permalink
Add missing sandwich params test
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed May 28, 2018
1 parent f44cce5 commit 5656f47
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/test_faker_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,17 @@ def test_sandwich
assert(test_array[0].split(' ').length == 2)
assert(test_array[0].split(' ').first.include?('#'))

assert(test_array[1].count('.') == 3)

assert_instance_of(String, test_array[0])
assert_instance_of(String, test_array[1])
assert_instance_of(String, test_array[2])
end

def test_sandwich_with_params
test_trigger = @tester.sandwich(10, 1)

test_array = []
test_trigger.each_line { |substr| test_array << substr }

9.times { |i| assert_instance_of(String, test_array[i]) }
end
end

0 comments on commit 5656f47

Please sign in to comment.