aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/mpi_requirement_spec.rb
blob: f32b2799341f5b1ae9323ddd3cf181e1240adc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "requirements/mpi_requirement"

describe MPIRequirement do
  describe "::new" do
    subject { described_class.new(*(wrappers + tags)) }
    let(:wrappers) { [:cc, :cxx, :f77] }
    let(:tags) { [:optional, "some-other-tag"] }

    it "untangles wrappers and tags" do
      expect(subject.lang_list).to eq(wrappers)
      expect(subject.tags).to eq(tags)
    end
  end
end