Skip to content
Snippets Groups Projects
Commit 8fee9bf4 authored by Markus Reiter's avatar Markus Reiter
Browse files

Convert MPIRequirement test to spec.

parent a74b7ade
No related branches found
No related tags found
No related merge requests found
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
require "testing_env"
require "requirements/mpi_requirement"
class MPIRequirementTests < Homebrew::TestCase
def test_initialize_untangles_tags_and_wrapper_symbols
wrappers = [:cc, :cxx, :f77]
tags = [:optional, "some-other-tag"]
dep = MPIRequirement.new(*wrappers + tags)
assert_equal wrappers, dep.lang_list
assert_equal tags, dep.tags
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment