Method: Funktional::AssignedShouldBlock#test_name_parts
- Defined in:
- lib/funktional/context/assigned_should_block.rb
#test_name_parts ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/funktional/context/assigned_should_block.rb', line 21 def test_name_parts call_chain = '' @recorder.__each_called do |meth, args| call_chain << ".#{meth}" unless meth.eql? :should_be end @should_name << "#{call_chain} should be [#{@recorder.__last_value}]" return ["test:", "#{@context.full_name},", "#{@should_name}"] end |