Sha256: 628eea2a3f1e63314678c289c9661e59e07fceea8e35b0d02c75075c98fc1a7c

Contents?: true

Size: 854 Bytes

Versions: 3

Compression:

Stored size: 854 Bytes

Contents

require 'spec_helper'

describe Outliers::Result do
  context "passing" do
    subject { Outliers::Result.new description: 'stuff', passed: true }
    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 passing verification" do
      expect(subject.failed?).to be_false
    end
  end

  context "failing" do
    subject { Outliers::Result.new description: 'stuff', passed: false }
    it "should return passed" do
      expect(subject.to_s).to eq 'failed'
    end

    it "should return false for failing 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

3 entries across 3 versions & 1 rubygems

Version Path
outliers-0.1.1 spec/results_spec.rb
outliers-0.1.0 spec/results_spec.rb
outliers-0.0.1 spec/results_spec.rb