Skip to content

Commit

Permalink
Test for brew ruby -e 'puts "testball".f.path'
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed Dec 1, 2020
1 parent 6750448 commit b532e79
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Library/Homebrew/test/dev-cmd/ruby_spec.rb
Expand Up @@ -15,3 +15,17 @@
.and not_to_output.to_stderr
end
end

describe "brew ruby -e 'puts \"testball\".f.path'", :integration_test do
let!(:target) do
target_path = setup_test_formula "testball"
{ path: target_path }
end

it "prints the path of a test formula" do
expect { brew "ruby", "-e", %q{puts "testball".f.path} }
.to be_a_success
.and output(/^#{target[:path]}$/).to_stdout
.and not_to_output.to_stderr
end
end

0 comments on commit b532e79

Please sign in to comment.