You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
466 B
Ruby
22 lines
466 B
Ruby
11 years ago
|
require 'spec_helper'
|
||
|
|
||
|
describe CellDecorator do
|
||
|
|
||
|
let(:decorator) { described_class.new(cell) }
|
||
|
let(:cell) { double('cell', :brush => brush) }
|
||
|
let(:brush) { double('brush') }
|
||
|
|
||
|
describe '#css_class' do
|
||
|
let(:brush_presenter) { double('brush_presenter', :to_css_class => 'kls') }
|
||
|
|
||
|
subject { decorator.css_class }
|
||
|
|
||
|
before do
|
||
|
allow(BrushPresenter).to receive(:new).with(brush) { brush_presenter }
|
||
|
end
|
||
|
|
||
|
it { should eq('kls') }
|
||
|
end
|
||
|
|
||
|
end
|