Sha256: b413c8fa27c449456acc12b4d78f75f04eada845c446f20abbcba4bcda79cf00
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
$:.unshift File.expand_path('../../lib', __FILE__) require 'bacon' require 'ovaltine' describe 'Storyboard' do before do @path = File.expand_path('features/fixtures/Sample/Sample/Base.lproj/Main.storyboard') @storyboard = Ovaltine::Storyboard.new('Main', [@path]) end it 'caches identifiers for generic view controllers' do @storyboard.view_controller_identifiers.should.include "sampleViewController" end it 'caches identifiers for collection view controllers' do @storyboard.view_controller_identifiers.should.include "collectionViewController" end it 'caches identifiers for table view controllers' do @storyboard.view_controller_identifiers.should.include "listViewController" end it 'caches identifiers for named segues' do @storyboard.segue_identifiers.should.include "starterSegueIdentifier" end it 'caches cell reuse identifiers for table view cells' do @storyboard.cell_reuse_identifiers.should.include "sampleCellIdentifier" end it 'caches cell reuse identifiers for collection view cells' do @storyboard.cell_reuse_identifiers.should.include "squareCellIdentifier" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ovaltine-1.0.4 | specs/storyboard_spec.rb |
ovaltine-1.0.2 | specs/storyboard_spec.rb |
ovaltine-1.0.1 | specs/storyboard_spec.rb |
ovaltine-1.0.0 | specs/storyboard_spec.rb |