Sha256: 6ccfd998a3ccab9b7b503b8b77eb9a8b50928a40417d2a0414d9d5583e5eeefb

Contents?: true

Size: 592 Bytes

Versions: 6

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

module Cucumber::Ast
  describe OutlineTable do
    describe OutlineTable::ExampleRow do
      describe "a header row" do
        before(:each) do
          @row = OutlineTable::ExampleRow.new(
            mock('table', :index => 0),
            [mock('cell', :status= => nil)]
          )
        end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-1.3.2 spec/cucumber/ast/outline_table_spec.rb
cucumber-1.3.1 spec/cucumber/ast/outline_table_spec.rb
cucumber-1.3.0 spec/cucumber/ast/outline_table_spec.rb
cucumber-1.2.5 spec/cucumber/ast/outline_table_spec.rb
cucumber-1.2.3 spec/cucumber/ast/outline_table_spec.rb
cucumber-1.2.2 spec/cucumber/ast/outline_table_spec.rb