README.md in google-pubsub-enhancer-0.5.7 vs README.md in google-pubsub-enhancer-0.6.0

- old
+ new

@@ -57,13 +57,10 @@ include GooglePubsubEnhancer::Spec #set messages that come from a topic let(:messages) {[JSON.dump({foo:1}), JSON.dump({bar:2})]} - #set expected_messages that you expect to publish after your middleware's work done - let(:expected_messages) { [{"foo" => 1}, {"bar" => 2}]} - it "should do the magic you write into" do app = GooglePubsubEnhancer.new do # in this case the test middleware creates messages from pubsub objects @@ -77,10 +74,11 @@ short_topic_name: 'short_topic_name', messages: :messages_key end # the only expectation you need - publish_called_with expected_messages + publish_called_with({"foo" => 1}) + publish_called_with({"bar" => 2}) app.run 'subscription_short_name' end end ```