Sha256: c3950d120e594b4e5180dafd6d775d7dc9b5b120f6b8319fd12a74aa5e5063a6
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require "pathname" RSpec.describe "CLI plugins", type: :integration do xit "includes its commands in CLI output" do with_project do bundle_exec "hanami" expect(out).to include("hanami plugin [SUBCOMMAND]") end end xit "executes command from plugin" do with_project do bundle_exec "hanami plugin version" expect(out).to include("v0.1.0") end end # See https://github.com/hanami/hanami/issues/838 it "guarantees 'hanami new' to generate a project" do project = "bookshelf_without_gemfile" with_system_tmp_directory do run_cmd_with_clean_env "hanami new #{project}" destination = Pathname.new(Dir.pwd).join(project) expect(destination).to exist end end private def with_project super("bookshelf", gems: { "hanami-plugin" => { groups: [:plugins], path: Pathname.new(__dir__).join("..", "..", "..", "spec", "support", "fixtures", "hanami-plugin").realpath.to_s } }) do yield end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.beta2 | spec/integration/cli/plugins_spec.rb |
hanami-2.0.0.beta1.1 | spec/integration/cli/plugins_spec.rb |
hanami-2.0.0.beta1 | spec/integration/cli/plugins_spec.rb |