Sha256: 53e8de94795382d1151bdae5c48c1a62acb8a45d95a00fc557d50abc6975a4c8

Contents?: true

Size: 773 Bytes

Versions: 6

Compression:

Stored size: 773 Bytes

Contents

# frozen_string_literal: true

describe "Application generation" do
  let(:status) { system(command, out: File::NULL) }

  after { FileUtils.rm_rf("tmp/test_app") }

  context "with edge argument" do
    let(:command) { "bin/decidim --edge tmp/test_app" }

    it "successfully generates application" do
      expect(status).to eq(true)
    end
  end

  context "with branch argument" do
    let(:command) { "bin/decidim --branch master tmp/test_app" }

    it "successfully generates application" do
      expect(status).to eq(true)
    end
  end

  context "with path argument" do
    let(:command) { "bin/decidim --path #{File.expand_path("..", __dir__)} tmp/test_app" }

    it "successfully generates application" do
      expect(status).to eq(true)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-0.6.5 spec/generator_spec.rb
decidim-0.6.4 spec/generator_spec.rb
decidim-0.6.3 spec/generator_spec.rb
decidim-0.6.2 spec/generator_spec.rb
decidim-0.6.1 spec/generator_spec.rb
decidim-0.6.0 spec/generator_spec.rb