Skip to content

Commit

Permalink
Get Generate spec passing
Browse files Browse the repository at this point in the history
  • Loading branch information
azimux committed Mar 7, 2024
1 parent 79e65ad commit 49f5d4c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spec/foobara/generators/generate_sh_cli_connector_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
RSpec.describe Foobara::Generators::ShCliConnectorGenerator::GenerateShCliConnector do
let(:sh_cli_connector_name) { "SomePrefix::SomeOrg" }
let(:name) { "some-cli" }

let(:inputs) do
{
sh_cli_connector_name:,
description: "whatever"
name:
}
end
let(:sh_cli_connector) { described_class.new(inputs) }
Expand All @@ -14,8 +13,6 @@
it "generates a sh_cli_connector" do
expect(outcome).to be_success

sh_cli_connector_file = result["src/some_prefix/some_org.rb"]
expect(sh_cli_connector_file).to include("module SomeOrg")
expect(sh_cli_connector_file).to include("module SomePrefix")
expect(result.keys).to include("bin/some-cli")
end
end

0 comments on commit 49f5d4c

Please sign in to comment.