Sha256: bb381db13eeace0528b1237f070adde8069885988ed31cbb5f219660a45c0a90
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
require "spec_helper" require "ib/generator" describe IB::Generator do it "generates stubs" do files = IB::Parser.new.find_all("spec/fixtures") stubs = IB::Generator.new.generate_objc(files) stubs.should == <<-OBJC @interface CustomView : UIView @property IBOutlet UIGreenLabel * greenLabel; @property IBOutlet UILabel * redLabel; @property IBOutlet id untyped_label; @property IBOutlet id yellowLabel; -(IBAction) someAction:(id) sender; -(IBAction) anotherAction:(id) sender; -(IBAction) actionWithComment:(id) sender; -(IBAction) actionWithBrackets:(id) sender; @end @interface EmptyView : UIView @end OBJC end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ib-0.1.3 | spec/generator_spec.rb |