Sha256: a6165b9261848d579773854ebf7697323b09ffb12b529f5ae6bef3163d5bc96a
Contents?: true
Size: 653 Bytes
Versions: 7
Compression:
Stored size: 653 Bytes
Contents
shared_examples_for 'the panel_row helper' do all_tests_pass_with 'no panel_row options' all_tests_pass_with 'extra panel_row options' end #-- shared_examples_for 'no panel_row options' do specify 'displays an <div> with class="row"' do html = '<div class="row">content</div>' expect(:panel_row).to generate html end end shared_examples_for 'extra panel_row options' do specify 'passes the options to the <div>' do options = {class: 'important', data: {value: 1}, id: 'my-panel-row'} html = '<div class="important row" data-value="1" id="my-panel-row">content</div>' expect(panel_row: options).to generate html end end
Version data entries
7 entries across 7 versions & 1 rubygems