Sha256: 365c2727033cc9221fa5c4f413a04b92b676143dc62ead65d0fe283225abd35f

Contents?: true

Size: 644 Bytes

Versions: 10

Compression:

Stored size: 644 Bytes

Contents

require 'spec_helper'

require 'rocket_fuel/precheck/check_result'

describe RocketFuel::Precheck::CheckResult do
  it 'has a boolean result' do
    bool = true
    check_result = RocketFuel::Precheck::CheckResult.new(bool, '', :something)
    expect(check_result.result).to eq(bool)
  end

  it 'has a message' do
    msg = 'Message'
    result = RocketFuel::Precheck::CheckResult.new(true, msg, :something)
    expect(result.message).to eq(msg)
  end

  it 'has a check_name'do
    check_name = :something
    result = RocketFuel::Precheck::CheckResult.new(true, 'a msg', :something)
    expect(result.check_name).to eq(check_name)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.1.0 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.8 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.7 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.6 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.5 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.4 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.3 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.2 spec/rocket_fuel/precheck/check_result_spec.rb
rocket_fuel-0.0.1 spec/rocket_fuel/precheck/check_result_spec.rb