Sha256: 0eb396d4269baca16a029e9f2707da5353c7e3c94fd55bf1e786d732f60d584f
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
require 'spec_helper' SimpleCov.command_name('Row') unless RUBY_VERSION.to_s < '1.9.0' describe 'Row, Unit' do clazz = CucumberAnalytics::Row it_should_behave_like 'a nested element', clazz it_should_behave_like 'a bare bones element', clazz it_should_behave_like 'a prepopulated element', clazz it_should_behave_like 'a sourced element', clazz it_should_behave_like 'a raw element', clazz it 'can be parsed from stand alone text' do source = '| a | row |' expect { clazz.new(source) }.to_not raise_error end before(:each) do @table = clazz.new end it 'has cells - #cells' do @table.should respond_to(:cells) end it 'can get and set its cells - #cells, #cells=' do @table.cells = :some_cells @table.cells.should == :some_cells @table.cells = :some_other_cells @table.cells.should == :some_other_cells end it 'starts with no cells' do @table.cells.should == [] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber_analytics-1.2.0 | spec/unit/row_unit_spec.rb |