Sha256: 601c54b6655fc12bef682b3130622a8a29f76464a2e25ac2c1986fae3607d210

Contents?: true

Size: 759 Bytes

Versions: 6

Compression:

Stored size: 759 Bytes

Contents

require 'simplecov'
require 'simplecov-rcov'
require 'timecop'
require 'webmock/rspec'

SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start do
  add_filter "./spec/"
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'health_reporter'


def reset_lambda_runner_spy
  @test_variable_from_sender = Random.new.rand(1...100000000000)
  @test_variable_from_receiver = 0
end

def spy_lambda_was_run?
  @test_variable_from_receiver == @test_variable_from_sender
end

def spy_lambda_returning_false
  lambda{
    @test_variable_from_receiver = @test_variable_from_sender
    return false
  }
end

def spy_lambda_returning_true
  lambda{
    @test_variable_from_receiver = @test_variable_from_sender
    return true
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
health-reporter-0.3.1 spec/spec_helper.rb
health-reporter-0.3.0 spec/spec_helper.rb
health-reporter-0.2.1 spec/spec_helper.rb
health-reporter-0.2.0 spec/spec_helper.rb
health-reporter-0.1.1 spec/spec_helper.rb
health-reporter-0.1.0 spec/spec_helper.rb