Sha256: f881afa8aa7fcad1093eb4949cea4a3820b463b26e9bda6ff23fd9620b45be4b

Contents?: true

Size: 802 Bytes

Versions: 8

Compression:

Stored size: 802 Bytes

Contents

require 'spec_helper'

describe TableCloth::Configuration do
  subject { Class.new(TableCloth::Configuration) }

  it 'configures table options' do
    subject.table.classes = 'table'
    subject.table.classes.should == 'table'
  end

  it 'configures thead options' do
    subject.thead.classes = 'thead'
    subject.thead.classes.should == 'thead'
  end

  it 'configures th options' do
    subject.th.classes = 'th'
    subject.th.classes.should == 'th'
  end

  it 'configures tbody options' do
    subject.tbody.classes = 'tbody'
    subject.tbody.classes.should == 'tbody'
  end

  it 'configures tr options' do
    subject.tr.classes = 'tr'
    subject.tr.classes.should == 'tr'
  end

  it 'configures td options' do
    subject.td.classes = 'td'
    subject.td.classes.should == 'td'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
table_cloth-0.3.0.beta1 spec/lib/configuration_spec.rb
table_cloth-0.2.3 spec/lib/configuration_spec.rb
table_cloth-0.2.2 spec/lib/configuration_spec.rb
table_cloth-0.2.1 spec/lib/configuration_spec.rb
table_cloth-0.2.0 spec/lib/configuration_spec.rb
table_cloth-0.1.2 spec/lib/configuration_spec.rb
table_cloth-0.1.1 spec/lib/configuration_spec.rb
table_cloth-0.1.0 spec/lib/configuration_spec.rb