Commit ee70cad4 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Fix dummy source file.

parent d32d3f7a
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_SampleApp_1 : NSObject @interface PodsDummy_Pods_SampleApp_1 : NSObject
@end @end
@implementation PodsDummy_Pods_SampleApp_1 @implementation PodsDummy_Pods_SampleApp_1
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_SampleApp_2 : NSObject @interface PodsDummy_Pods_SampleApp_2 : NSObject
@end @end
@implementation PodsDummy_Pods_SampleApp_2 @implementation PodsDummy_Pods_SampleApp_2
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_SampleApp_2 : NSObject @interface PodsDummy_Pods_SampleApp_2 : NSObject
@end @end
@implementation PodsDummy_Pods_SampleApp_2 @implementation PodsDummy_Pods_SampleApp_2
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_test : NSObject @interface PodsDummy_Pods_test : NSObject
@end @end
@implementation PodsDummy_Pods_test @implementation PodsDummy_Pods_test
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_OS_X_App : NSObject @interface PodsDummy_Pods_OS_X_App : NSObject
@end @end
@implementation PodsDummy_Pods_OS_X_App @implementation PodsDummy_Pods_OS_X_App
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_iOS_App : NSObject @interface PodsDummy_Pods_iOS_App : NSObject
@end @end
@implementation PodsDummy_Pods_iOS_App @implementation PodsDummy_Pods_iOS_App
......
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods : NSObject @interface PodsDummy_Pods : NSObject
@end @end
@implementation PodsDummy_Pods @implementation PodsDummy_Pods
......
...@@ -3,11 +3,12 @@ require File.expand_path('../../../spec_helper', __FILE__) ...@@ -3,11 +3,12 @@ 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 for the class name identifier" do it "generates a dummy source file with the appropriate class for the class name identifier" do
generator = Pod::Generator::DummySource.new('SomeIdentification') generator = Pod::Generator::DummySource.new('SomeIdentification')
file = temporary_directory + 'PodsDummy.m' file = temporary_directory + 'PodsDummy.m'
generator.save_as(file) generator.save_as(file)
file.read.should == <<-EOS.strip_heredoc file.read.should == <<-EOS.strip_heredoc
#import <Foundation/Foundation.h>
@interface PodsDummy_SomeIdentification : NSObject @interface PodsDummy_SomeIdentification : NSObject
@end @end
@implementation PodsDummy_SomeIdentification @implementation PodsDummy_SomeIdentification
...@@ -15,11 +16,12 @@ describe Pod::Generator::DummySource do ...@@ -15,11 +16,12 @@ describe Pod::Generator::DummySource do
EOS EOS
end end
it "generates a dummy sourcefile with the appropriate class, replacing non-alphanumeric characters with underscores" do it "generates a dummy source file with the appropriate class, replacing non-alphanumeric characters with underscores" do
generator = Pod::Generator::DummySource.new('This!has_non-alphanumeric+characters in it.0123456789') generator = Pod::Generator::DummySource.new('This!has_non-alphanumeric+characters in it.0123456789')
file = temporary_directory + 'PodsDummy.m' file = temporary_directory + 'PodsDummy.m'
generator.save_as(file) generator.save_as(file)
file.read.should == <<-EOS.strip_heredoc file.read.should == <<-EOS.strip_heredoc
#import <Foundation/Foundation.h>
@interface PodsDummy_This_has_non_alphanumeric_characters_in_it_0123456789 : NSObject @interface PodsDummy_This_has_non_alphanumeric_characters_in_it_0123456789 : NSObject
@end @end
@implementation PodsDummy_This_has_non_alphanumeric_characters_in_it_0123456789 @implementation PodsDummy_This_has_non_alphanumeric_characters_in_it_0123456789
......
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