test/outpost/scout_test.rb in outpost-0.1.0 vs test/outpost/scout_test.rb in outpost-0.2.0

- old
+ new

@@ -1,7 +1,6 @@ require 'test_helper' -require 'ostruct' describe Outpost::Scout do NoisyError = Class.new(StandardError) class ScoutExample < Outpost::Scout @@ -76,14 +75,14 @@ end end private def config_mock - OpenStruct.new.tap do |config| - config.reports = {} - config.reports[{:response => true}] = :up - config.reports[{:response => false}] = :down - end + reports = { + {:response => true} => :up, + {:response => false} => :down + } + build_stub(:reports => reports) end def add_expectation(expectation, callable) ScoutExample.expect expectation, callable end