Sha256: c842ac38340c4e1bd80ea23e3ed4443724f2e60fdeb955088837a70e39234e5d
Contents?: true
Size: 650 Bytes
Versions: 38
Compression:
Stored size: 650 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../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
38 entries across 38 versions & 3 rubygems