Sha256: 51f0421653ac4c0a7c1d63255151daf08534961846ad95d9d2e9cc199430db8c
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' describe StatusRenderingVerbosity do let(:results) { [{result: :passed, inspection: 'HasBinding', binding: 'foo'}, {result: :failed, inspection: 'HasBinding', binding: 'bar'}] } describe StatusRenderingVerbosity::Verbose do it { expect(StatusRenderingVerbosity::Verbose.visible_expectation_results(:passed_with_warnings, results)).to eq results } end describe StatusRenderingVerbosity::Standard do let (:failed_expectations) { [{result: :failed, inspection: 'HasBinding', binding: 'bar'}] } it { expect(StatusRenderingVerbosity::Standard.visible_expectation_results(:passed_with_warnings, results)).to eq failed_expectations } it { expect(StatusRenderingVerbosity::Standard.visible_expectation_results(:errored, results)).to eq failed_expectations } end describe StatusRenderingVerbosity::Silent do it { expect(StatusRenderingVerbosity::Silent.visible_expectation_results(:passed_with_warnings, results)).to be_empty } it { expect(StatusRenderingVerbosity::Silent.render_feedback?(Object.new)).to be false } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mumuki-laboratory-5.5.0 | spec/models/verbosity_spec.rb |
mumuki-laboratory-5.4.0 | spec/models/verbosity_spec.rb |
mumuki-laboratory-5.3.0 | spec/models/verbosity_spec.rb |