private File root(String relativePath) {
return new File( pwd(), relativePath );
}
private RailsRuntimeInitializer create(File root, String env) {
RubyAppMetaData rubyAppMetaData = new RubyAppMetaData( "test-app");
rubyAppMetaData.setRoot( root );
rubyAppMetaData.setEnvironmentName( env );
RackMetaData rackAppMetaData = new RackMetaData();
RailsMetaData railsMetaData = new RailsMetaData();
return new RailsRuntimeInitializer( rubyAppMetaData, rackAppMetaData, railsMetaData );