' }
let(:expected) {
"
A
"
}
it { subject.must_equal(expected) }
end
context 'with the default :start_tag and :end_tag' do
let(:expected) {
"
A | "
}
it { subject.must_equal(expected) }
end
context 'when the cell has only a background colour' do
let(:foreground) {}
let(:expected) {
"
A | "
}
it { subject.must_equal(expected) }
end
context 'when the cell has only a foreground colour' do
let(:background) {}
let(:expected) {
"
A | "
}
it { subject.must_equal(expected) }
end
context 'when the cell has neither background or foreground colours' do
let(:background) {}
let(:foreground) {}
let(:expected) { '
A | ' }
it { subject.must_equal(expected) }
end
context 'when the cell does not have a value or does not respond to ' \
':as_html' do
let(:_value) { '' }
let(:expected) {
"
| "
}
it { subject.must_equal(expected) }
end
end
end # HTML
end # Cells
end # Vedeu