Sha256: a48a407d34e67bc5a633de76952afdb85dc84a3af0a04b7e025947ba324432da

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

require 'spec_helper'

module Lucid::AST
  describe OutlineTable do
    describe OutlineTable::ExampleRow do
      describe 'a header row' do
        before(:each) do
          @row = OutlineTable::ExampleRow.new(
              double('table', :index => 0),
              [double('cell', :status= => nil, :accept => nil)]
          )
        end

        it 'should raise an error if you try to call #failed?' do
          @row.accept_plain double('visitor', :visit_table_cell => nil)
          lambda{ @row.failed? }.should raise_error(NoMethodError, /cannot pass or fail/)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lucid-0.4.1 spec/lucid/ast/outline_table_spec.rb
lucid-0.4.0 spec/lucid/ast/outline_table_spec.rb
lucid-0.3.3 spec/lucid/ast/outline_table_spec.rb
lucid-0.3.0 spec/lucid/ast/outline_table_spec.rb