Sha256: 82ec5eeb863bce75fd1b603a86b22db1e1d7cd6814e003da5bbbc2804a6bef2f
Contents?: true
Size: 619 Bytes
Versions: 24
Compression:
Stored size: 619 Bytes
Contents
describe 'Blocks that are state specific' do before do @subject = TestLayoutState.new end it 'should run the initial blocks from layout' do @subject.view.text.should == 'initial' end it 'should run the reapply blocks from layout' do @subject.reapply! @subject.view.text.should == 'reapply' end it 'should run the initial blocks from any method' do any_view = @subject.any_view any_view.text.should == 'initial' end it 'should run the reapply blocks from any method' do any_view = @subject.any_view @subject.reapply! any_view.text.should == 'reapply' end end
Version data entries
24 entries across 18 versions & 1 rubygems