Sha256: ed98871b1de03b1c4048ea295a349d73c6bd08841b1f9d7920d8821382d8e365
Contents?: true
Size: 1019 Bytes
Versions: 7
Compression:
Stored size: 1019 Bytes
Contents
require "spec_helper" RSpec.describe "Front end" do before(:all) { drop_dummy_database } before(:each) { remove_project_directory } it "creates a project wihtout a front end framework" do create_dummy_project("front_end" => "None") gemfile = IO.read("#{project_path}/Gemfile") expect(gemfile).not_to include('webpacker') end it "creates a project wihtout vue as front end framework" do create_dummy_project("front_end" => "angular") gemfile = IO.read("#{project_path}/Gemfile") node_modules_file = IO.read("#{project_path}/package.json") expect(gemfile).to include('webpacker') expect(node_modules_file).to include("\"@angular/core\"") end it "creates a project wihtout vue as front end framework" do create_dummy_project("front_end" => "vue") gemfile = IO.read("#{project_path}/Gemfile") node_modules_file = IO.read("#{project_path}/package.json") expect(gemfile).to include('webpacker') expect(node_modules_file).to include("\"vue\"") end end
Version data entries
7 entries across 7 versions & 1 rubygems