Sha256: cc9fb2fd83827aea992a453c41b29171c9fb022d93ffeb35a988aa41b73cc518
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true describe "Application generation" do let(:status) { 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 before(:all) do system("bundle exec rake install_all") end context "without flags" do let(:command) { "decidim #{test_app}" } it_behaves_like "a sane generator" end context "with --edge flag" do let(:command) { "decidim --edge #{test_app}" } it_behaves_like "a sane generator" end context "with --branch flag" do let(:command) { "decidim --branch master #{test_app}" } it_behaves_like "a sane generator" end context "with --path flag" do let(:command) { "decidim --path #{File.expand_path("..", __dir__)} #{test_app}" } it_behaves_like "a sane generator" end context "development application" do let(:command) do "decidim --path #{File.expand_path("..", __dir__)} #{test_app} --recreate_db --seed_db" end it_behaves_like "a sane generator" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-0.7.4 | spec/generator_spec.rb |
decidim-0.7.3 | spec/generator_spec.rb |