diff --git a/lib/rucola/generators/xcode_template.rb b/lib/rucola/generators/xcode_template.rb index 522fcf6..078ce60 100644 --- a/lib/rucola/generators/xcode_template.rb +++ b/lib/rucola/generators/xcode_template.rb @@ -51,7 +51,7 @@ def FULLUSERNAME # Dummy stub def ORGANIZATIONNAME - '__MyCompany__' + '__MyCompanyName__' end module Actions diff --git a/spec/fixtures/MacRuby Application/rb_main.rb b/spec/fixtures/MacRuby Application/rb_main.rb index 5d13824..84a7112 100755 --- a/spec/fixtures/MacRuby Application/rb_main.rb +++ b/spec/fixtures/MacRuby Application/rb_main.rb @@ -1,9 +1,9 @@ # # rb_main.rb -# ÇPROJECTNAMEÈ +# ÇPROJECTNAMEÈ # -# Created by ÇFULLUSERNAMEÈ on ÇDATEÈ. -# Copyright ÇORGANIZATIONNAMEÈ ÇYEARÈ. All rights reserved. +# Created by ÇFULLUSERNAMEÈ on ÇDATEÈ. +# Copyright ÇORGANIZATIONNAMEÈ ÇYEARÈ. All rights reserved. # # Loading the Cocoa framework. If you need to load more frameworks, you can diff --git "a/spec/fixtures/expected/U\314\210berc\303\270\303\270l/main.m" "b/spec/fixtures/expected/U\314\210berc\303\270\303\270l/main.m" index 315a26c..e978309 100755 --- "a/spec/fixtures/expected/U\314\210berc\303\270\303\270l/main.m" +++ "b/spec/fixtures/expected/U\314\210berc\303\270\303\270l/main.m" @@ -3,7 +3,7 @@ // Ãœbercøøl // // Created by Eloy Duran on 25-06-10. -// Copyright __MyCompany__ 2010. All rights reserved. +// Copyright __MyCompanyName__ 2010. All rights reserved. // #import diff --git "a/spec/fixtures/expected/U\314\210berc\303\270\303\270l/rb_main.rb" "b/spec/fixtures/expected/U\314\210berc\303\270\303\270l/rb_main.rb" index 57160ca..482d908 100755 --- "a/spec/fixtures/expected/U\314\210berc\303\270\303\270l/rb_main.rb" +++ "b/spec/fixtures/expected/U\314\210berc\303\270\303\270l/rb_main.rb" @@ -1,6 +1,6 @@ # # rb_main.rb -# †berc¿¿l +# Ãœbercøøl # # Created by Eloy Duran on 25-06-10. # Copyright __MyCompanyName__ 2010. All rights reserved. diff --git a/spec/functional/xcode_template_spec.rb b/spec/functional/xcode_template_spec.rb index e92711d..d94cdd3 100644 --- a/spec/functional/xcode_template_spec.rb +++ b/spec/functional/xcode_template_spec.rb @@ -16,6 +16,13 @@ def PROJECTNAME template.render.should == expected end + it "renders a XCode Info.plist template" do + template_file = fixture('MacRuby Application/Info.plist') + expected = read_fixture('expected/Ãœbercøøl/Info.plist') + template = XCodeTemplate.new(XCodeTemplateContext.new, template_file) + template.render.should == expected + end + it "renders a XCode main.m template" do Date.stubs(:today).returns(Date.new(2010, 6, 25)) @@ -25,9 +32,11 @@ def PROJECTNAME template.render.should == expected end - it "renders a XCode Info.plist template" do - template_file = fixture('MacRuby Application/Info.plist') - expected = read_fixture('expected/Ãœbercøøl/Info.plist') + it "renders a XCode rb_main.rb template" do + Date.stubs(:today).returns(Date.new(2010, 6, 25)) + + template_file = fixture('MacRuby Application/rb_main.rb') + expected = read_fixture('expected/Ãœbercøøl/rb_main.rb') template = XCodeTemplate.new(XCodeTemplateContext.new, template_file) template.render.should == expected end