Sha256: 615c97d8d14375add8978e6b5a3bb18cfc58b22d32e25b8ba6b31945082a8808
Contents?: true
Size: 484 Bytes
Versions: 2
Compression:
Stored size: 484 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; -(IBAction) someAction:(id) sender; @end @interface EmptyView : UIView @end OBJC end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ib-0.1.2 | spec/generator_spec.rb |
ib-0.1.1 | spec/generator_spec.rb |