Sha256: 827969ad71da5d2c89e72bf87ac205f931aa2d72e2f9fdd05b26763c5a81a60e

Contents?: true

Size: 957 Bytes

Versions: 18

Compression:

Stored size: 957 Bytes

Contents

RSpec.describe <%= plugin_module_name %> do

  include PowerStencilTests::Project
  temporary_project 'test_project', scope: :all

  let(:plugin_list) { 'plugin --list' }
  let(:test_entity) { '<%= plugin_name %>_entity/test_<%= plugin_name %>' }
  let(:create_<%= plugin_name %>) { "create #{test_entity}" }
  let(:get_<%= plugin_name %>) { "get #{test_entity}" }

  it 'has a version number' do
    expect(<%= plugin_module_name %>::VERSION).not_to be nil
  end

  it 'should add a "<%= plugin_name %>" sub-command' do
    expect(`#{temporary_project_cmd plugin_list}`).to match '- <%= plugin_name %>'
  end

  it 'should be possible to create a "<%= plugin_name %>_entity"' do
    `#{temporary_project_cmd create_<%= plugin_name %>}`
    expect($?.success?).to be_truthy
    expect(`#{temporary_project_cmd get_<%= plugin_name %>}`).not_to be_empty
  end

  it 'should do something useful' do
    pending 'Tests implementation'
    RSpec.fail
  end

end

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
power_stencil-0.10.0 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.10.0 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.8 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.8 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.7 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.7 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.6 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.6 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.5 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.5 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.4 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.4 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.3 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.3 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.2 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.2 etc/templates/plugin_definition/spec/{entity}_spec.rb
power_stencil-0.9.1 etc/meta_templates/plugin_seed/spec/{entity}_spec.rb
power_stencil-0.9.1 etc/templates/plugin_definition/spec/{entity}_spec.rb