Sha256: 78f9fd9810604d385e25ec9f65f81654f8767db5241901373358d1cc247995de

Contents?: true

Size: 799 Bytes

Versions: 6

Compression:

Stored size: 799 Bytes

Contents

require 'spec_helper'
require 'legion/extensions/<%= config[:lex] %>/runners/<%= config[:name] %>'

RSpec.describe Legion::Extensions::<%= config[:lex].split('_').collect(&:capitalize).join %>::Runners::<%= config[:name].capitalize %> do
  it { should be_a Module }
  Legion::Extensions::<%= config[:lex].capitalize %>::Runners::<%= config[:name].split('_').collect(&:capitalize).join %>.extend Legion::Extensions::<%= config[:lex].split('_').collect(&:capitalize).join %>::Runners::<%= config[:name].split('_').collect(&:capitalize).join %>

  describe 'Functions should work with arguments' do
    let(:test_class) { Class.new { extend Legion::Extensions::<%= config[:lex].split('_').collect(&:capitalize).join %>::Runners::<%= config[:name].split('_').collect(&:capitalize).join %> } }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
legionio-1.2.1 lib/legion/cli/lex/templates/runner_spec.erb
legionio-1.2.0 lib/legion/cli/lex/templates/runner_spec.erb
legionio-0.4.3 lib/legion/cli/lex/templates/runner_spec.erb
legionio-0.4.2 lib/legion/cli/lex/templates/runner_spec.erb
legionio-0.4.1 lib/legion/cli/lex/templates/runner_spec.erb
legionio-0.4.0 lib/legion/cli/lex/templates/runner_spec.erb