spec/cli/helper_spec.rb in jnunemaker-twitter-0.4.0 vs spec/cli/helper_spec.rb in jnunemaker-twitter-0.4.1
- old
+ new
@@ -33,9 +33,17 @@
)
]
end
specify "should properly format" do
- output_tweets(@collection)
+ stdout_for {
+ output_tweets(@collection)
+ }.should match(/with a few words[\w\W]*with a\./)
+ end
+
+ specify 'should format in reverse' do
+ stdout_for {
+ output_tweets(@collection, :reverse => true)
+ }.should match(/with a\.[\w\W]*with a few words/)
end
end
end
\ No newline at end of file