diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e14a64c..1bf2625 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,5 +21,4 @@ jobs: - name: Run linter for Ruby run: bundle exec standardrb - name: Run tests - shell: bash - run: set -o pipefail && bundle exec rspec + run: bundle exec rspec diff --git a/exe/aim b/exe/aim index 2ff0991..a30e8b9 100755 --- a/exe/aim +++ b/exe/aim @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH.unshift("/app/lib") +$LOAD_PATH.unshift(File.absolute_path(File.join(__dir__, "..", "lib"))) require "bundler/setup" require "aim" diff --git a/spec/aim/integrations/cli_spec.rb b/spec/aim/integrations/cli_spec.rb index 523f827..4bae435 100644 --- a/spec/aim/integrations/cli_spec.rb +++ b/spec/aim/integrations/cli_spec.rb @@ -2,7 +2,7 @@ RSpec.describe "CLI" do it "shows only the commands related to the app name" do with_modified_env APP_NAME: "hathifiles" do - output = `aim help` + output = `exe/aim help` expect(output).to include("hathifiles") expect(output).not_to include("sms") end