Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 06feb6d

Browse files
liamnicholsm-ruhl
authored andcommitted
Add a test to check that the return value of Actions.sh is returned from the action
1 parent 2d04600 commit 06feb6d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/xcodegen_action_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
describe Fastlane do
22
describe Fastlane::FastFile do
33
describe "XcodeGen Integration" do
4+
it "returns shell output" do
5+
expect(Fastlane::Actions).to receive(:sh).with("which xcodegen", anything)
6+
expect(Fastlane::Actions).to receive(:sh).with("xcodegen").and_return("Shell Output")
7+
8+
result = Fastlane::FastFile.new.parse("lane :test do
9+
xcodegen
10+
end").runner.execute(:test)
11+
12+
expect(result).to eq("Shell Output")
13+
end
414
it "sets no param" do
515
result = Fastlane::FastFile.new.parse("lane :test do
616
xcodegen()

0 commit comments

Comments
 (0)