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

Version Path
motion-kit-1.1.1 spec/tvos/layout_state_spec.rb
motion-kit-1.1.1 spec/ios/layout_state_spec.rb
motion-kit-1.1.0 spec/tvos/layout_state_spec.rb
motion-kit-1.1.0 spec/ios/layout_state_spec.rb
motion-kit-1.0.3 spec/ios/layout_state_spec.rb
motion-kit-1.0.3 spec/tvos/layout_state_spec.rb
motion-kit-1.0.2 spec/tvos/layout_state_spec.rb
motion-kit-1.0.2 spec/ios/layout_state_spec.rb
motion-kit-1.0.1 spec/tvos/layout_state_spec.rb
motion-kit-1.0.1 spec/ios/layout_state_spec.rb
motion-kit-1.0.0 spec/ios/layout_state_spec.rb
motion-kit-1.0.0 spec/tvos/layout_state_spec.rb
motion-kit-0.18.0 spec/ios/layout_state_spec.rb
motion-kit-0.17.0 spec/ios/layout_state_spec.rb
motion-kit-0.16.0 spec/ios/layout_state_spec.rb
motion-kit-0.15.0 spec/ios/layout_state_spec.rb
motion-kit-0.14.2 spec/ios/layout_state_spec.rb
motion-kit-0.14.1 spec/ios/layout_state_spec.rb
motion-kit-0.14.0 spec/ios/layout_state_spec.rb
motion-kit-0.13.0 spec/ios/layout_state_spec.rb