Method: Wukong::SpecHelpers::UnitTestDriver#given_json
- Defined in:
- lib/wukong/spec_helpers/unit_tests/unit_test_driver.rb
#given_json(*records) ⇒ Object
Give a collection of records to the processor but turn each to JSON first.
46 47 48 |
# File 'lib/wukong/spec_helpers/unit_tests/unit_test_driver.rb', line 46 def given_json *records self.given(*records.map { |record| MultiJson.dump(record) }) end |