transferred Code Ocean from original repository to GitHub

This commit is contained in:
Hauke Klement
2015-01-22 09:51:49 +01:00
commit 4cbf9970b1
683 changed files with 11979 additions and 0 deletions

View File

@ -0,0 +1,30 @@
require 'rails/generators'
class TestingFrameworkAdapterGenerator < Rails::Generators::NamedBase
ADAPTER_PATH = ->(name) { Rails.root.join('lib', "#{name.underscore}_adapter.rb") }
SPEC_PATH = ->(name) { Rails.root.join('spec', 'lib', "#{name.underscore}_adapter_spec.rb") }
def create_testing_framework_adapter
create_file ADAPTER_PATH.call(file_name), <<-code
class #{file_name.camelize}Adapter < TestingFrameworkAdapter
def self.framework_name
'#{file_name.camelize}'
end
def parse_output(output)
end
end
code
end
def create_spec
create_file SPEC_PATH.call(file_name), <<-code
require 'rails_helper'
describe #{file_name.camelize}Adapter do
describe '#parse_output' do
end
end
code
end
end