Sha256: 55d371b52a68816ca58896e6bd3cb694ae824c6834afbf96a0ef73908ef53b6a
Contents?: true
Size: 927 Bytes
Versions: 4
Compression:
Stored size: 927 Bytes
Contents
include ReportCat::Core describe RSpec::Matchers, 'have_column' do let( :name ) { :test } let( :type ) { :integer } let( :options ) { { :foo => true } } before( :each ) do @report = Report.new @column = @report.add_column( name, type, options ) end it 'passes if the report has the column' do expect( @report ).to have_column( name ) expect( @report ).to have_column( name ).with_type( type ) expect( @report ).to have_column( name ).with_options( options ) expect( @report ).to have_column( name ).with_type( type ).with_options( options ) end it 'fails if the report does not have the column' do expect( @report ).to_not have_column( :foo ) expect( @report ).to_not have_column( name ).with_type( :foo ) expect( @report ).to_not have_column( name ).with_options( :foo ) expect( @report ).to_not have_column( name ).with_type( :foo ).with_options( :foo ) end end
Version data entries
4 entries across 4 versions & 1 rubygems