Sha256: 2264bb827474b3a9ba5c40ae7ecaa460a1b86770bdc14730757e773792390137

Contents?: true

Size: 902 Bytes

Versions: 2

Compression:

Stored size: 902 Bytes

Contents

require 'ronin/ui/command_line/commands/gen_overlay'

require 'spec_helper'
require 'generated_overlay_examples'

require 'tmpdir'
require 'fileutils'

describe UI::CommandLine::Commands::GenOverlay do

  before(:all) do
    @name = 'ronin_generated_overlay'
    @path = File.join(Dir.tmpdir,@name)
    @title = 'Test Overlay'
    @source = 'ssh+svn://www.example.com/var/svn/test/'
    @source_view = 'http://www.example.com/test/'
    @website = 'http://www.example.com/blog/'
    @license = 'GPL-2'
    @description = 'This is a test overlay'

    UI::CommandLine::Commands::GenOverlay.run(
      '--title', @title,
      '--source', @source,
      '--source-view', @source_view,
      '--website', @website,
      '--license', @license,
      '--description', @description,
      @path
    )
  end

  it_should_behave_like "Generated Overlay"

  after(:all) do
    FileUtils.rm_r(@path)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-gen-0.1.1 spec/ui/command_line/commands/gen_overlay_spec.rb
ronin-gen-0.1.0 spec/ui/command_line/commands/gen_overlay_spec.rb