Skip to content
  • Gert Goet's avatar
    70933562
    Passed block will be wrapped in separate it-block · 70933562
    Gert Goet authored
    No need to add an it-block or to wrap the table in one.
    For example:
    
    ```ruby
    describe '#full_name' do
      specify_each(<<-TABLE) do |first, last, expected|
        | Foo | Bar | Foo Bar |
      TABLE
    
        expect(full_name(first, last)).to eq expected
      end
    end
    ```
    
    Also:
    * rename `each_row` => `specify_each`
    * have default description
    70933562
    Passed block will be wrapped in separate it-block
    Gert Goet authored
    No need to add an it-block or to wrap the table in one.
    For example:
    
    ```ruby
    describe '#full_name' do
      specify_each(<<-TABLE) do |first, last, expected|
        | Foo | Bar | Foo Bar |
      TABLE
    
        expect(full_name(first, last)).to eq expected
      end
    end
    ```
    
    Also:
    * rename `each_row` => `specify_each`
    * have default description
Loading