Sha256: 94712e402f909b79d02c0217bcfb598b6e6b62175cc5835866914bc304709670
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true describe "Application generation" do let(:status) { Bundler.clean_system(command, out: File::NULL) } let(:test_app) { "spec/generator_test_app" } after { FileUtils.rm_rf(test_app) } shared_examples_for "a sane generator" do it "successfully generates application" do expect(status).to eq(true) end end context "without flags" do let(:command) { "bin/decidim #{test_app}" } it_behaves_like "a sane generator" end context "with --edge flag" do let(:command) { "bin/decidim --edge #{test_app}" } it_behaves_like "a sane generator" end context "with --branch flag" do let(:command) { "bin/decidim --branch master #{test_app}" } it_behaves_like "a sane generator" end context "with --path flag" do let(:command) { "bin/decidim --path #{File.expand_path("..", __dir__)} #{test_app}" } it_behaves_like "a sane generator" end context "development application" do let(:command) do "bin/decidim --path #{File.expand_path("..", __dir__)} #{test_app} --recreate_db --seed_db" end it_behaves_like "a sane generator" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
decidim-0.7.0 | spec/generator_spec.rb |
decidim-0.6.8 | spec/generator_spec.rb |
decidim-0.6.7 | spec/generator_spec.rb |
decidim-0.6.6 | spec/generator_spec.rb |