diff options
| author | Markus Reiter | 2017-02-16 22:31:43 +0100 | 
|---|---|---|
| committer | Markus Reiter | 2017-02-17 23:59:27 +0100 | 
| commit | 8fee9bf44dad59b422293b6eb37ac83435475b01 (patch) | |
| tree | 176781753173a7b4551dc37e89668919fb510d3c /Library/Homebrew/test/mpi_requirement_spec.rb | |
| parent | a74b7ade66e340c55b3bea7b6226fa68a311b4ce (diff) | |
| download | brew-8fee9bf44dad59b422293b6eb37ac83435475b01.tar.bz2 | |
Convert MPIRequirement test to spec.
Diffstat (limited to 'Library/Homebrew/test/mpi_requirement_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/mpi_requirement_spec.rb | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/test/mpi_requirement_spec.rb b/Library/Homebrew/test/mpi_requirement_spec.rb new file mode 100644 index 000000000..f32b27993 --- /dev/null +++ b/Library/Homebrew/test/mpi_requirement_spec.rb @@ -0,0 +1,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  | 
