brew/Library/Homebrew/test/mpi_requirement_spec.rb

15 lines
403 B
Ruby
Raw Normal View History

2017-12-30 18:58:30 +00:00
require "compat/requirements/mpi_requirement"
2017-02-16 22:31:43 +01:00
2017-12-30 18:58:30 +00:00
describe MPIRequirement, :needs_compat do
2017-02-16 22:31:43 +01:00
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