diff options
Diffstat (limited to 'spec/lib/messages_spec.rb')
-rw-r--r-- | spec/lib/messages_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/messages_spec.rb b/spec/lib/messages_spec.rb index 7550991..79551b7 100644 --- a/spec/lib/messages_spec.rb +++ b/spec/lib/messages_spec.rb @@ -68,4 +68,10 @@ RSpec.describe Chotto::Messages do .to eq(' (from:baltar@battlestar.com) or (from:adama@battestar.com) and (ship:battlestar) or (ship:pegasus)') } end + + context 'sorting order' do + it { expect(subject.filter('from:baltar@battlestar.com').order).to eq('oldest_first') } + it { expect(subject.filter('from:baltar@battlestar.com').newest_first.order).to eq('newest_first') } + it { expect(subject.filter('from:baltar@battlestar.com').newest_first.oldest_first.order).to eq('oldest_first') } + end end |