diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/.messages_spec.rb.swp | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | spec/lib/messages_spec.rb | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/.messages_spec.rb.swp b/spec/lib/.messages_spec.rb.swp Binary files differnew file mode 100644 index 0000000..98cda14 --- /dev/null +++ b/spec/lib/.messages_spec.rb.swp 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 |