Commit 967b8aba authored by Francis Chong's avatar Francis Chong

implement unit test for dummy source

parent a1717fb1
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../../../spec_helper', __FILE__)
describe Pod::Generator::DummySource do describe Pod::Generator::DummySource do
it "generates a dummy sourcefile with the appropriate class" extend SpecHelper::TemporaryDirectory
before do
setup_temporary_directory
end
after do
teardown_temporary_directory
end
def do_install!
@installer.install!(@pods, @sandbox)
end
it "generates a dummy sourcefile with the appropriate class" do
generator = Pod::Generator::DummySource.new("Pods")
file = temporary_directory + 'PodsDummy.m'
generator.save_as(file)
file.read.should == <<-EOS
@interface PodsDummy : NSObject
@end
@implementation PodsDummy
@end
EOS
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment