Sha256: 67cdcca043ed324f13f6756b1555fad92a2028387dd907832cd5c8884b1db1c1
Contents?: true
Size: 1.48 KB
Versions: 5
Compression:
Stored size: 1.48 KB
Contents
require 'spec_helper' describe Outliers::Result do context "passing" do subject { Outliers::Result.new evaluation: 'evalme', failing_resources: [], passing_resources: ['key1', 'key2'], resource: 'instance', verification: 'vpc' } it "should return passed" do expect(subject.to_s).to eq 'passed' end it "should return true for passing verification" do expect(subject.passed?).to be_true end it "should return false for failing verification" do expect(subject.failed?).to be_false end it "should return the result information" do expect(subject.passing_resources).to eq(['key1', 'key2']) end end context "failing" do subject { Outliers::Result.new evaluation: 'evalme', failing_resources: ['key3', 'key4'], passing_resources: [], resource: 'instance', verification: 'vpc' } it "should return failed" do expect(subject.to_s).to eq 'failed' end it "should return false for passing verification" do expect(subject.passed?).to be_false end it "should return true for failing verification" do expect(subject.failed?).to be_true end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
outliers-0.3.3 | spec/results_spec.rb |
outliers-0.3.2 | spec/results_spec.rb |
outliers-0.3.1 | spec/results_spec.rb |
outliers-0.3.0 | spec/results_spec.rb |
outliers-0.2.0 | spec/results_spec.rb |