spec/arborist/dependency_spec.rb in arborist-0.0.1.pre20160829140603 vs spec/arborist/dependency_spec.rb in arborist-0.0.1.pre20161005112841

- old
+ new

@@ -319,19 +319,19 @@ end it "can describe the reason it's down" do dep.mark_down( 'node2' ) - expect( dep.down_reason ).to match( /node2 is down as of/i ) + expect( dep.down_reason ).to match( /node2 is unavailable as of/i ) end it "can describe the reason if multiple nodes have been marked down" do dep.mark_down( 'node1' ) dep.mark_down( 'node2' ) # :FIXME: Does order matter in the 'all' case? This assumes no. - expect( dep.down_reason ).to match( /node(1|2) \(and 1 other\) are down as of/i ) + expect( dep.down_reason ).to match( /node(1|2) \(and 1 other\) are unavailable as of/i ) end end @@ -362,10 +362,11 @@ it "can describe the reason it's down" do dep.mark_down( 'node2' ) dep.mark_down( 'node1' ) - expect( dep.down_reason ).to match( /are all down as of/i ).and( include('node1', 'node2') ) + expect( dep.down_reason ).to match( /are all unavailable as of/i ). + and( include('node1', 'node2') ) end end