Sha256: 0fbfde8582ade3a1fc0e063fafbce035b91759b10464160c1155489f42bdad5b

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

describe OpenConferenceWare::SessionType do
  fixtures :all

  it "should sort alphabetically by title" do
    things = [ build(:session_type, title: 'I love cats'),
               build(:session_type, title: 'A really big dog'),
               nil ]
    sorted_things = things.sort
    sorted_things[0].should be_nil
    sorted_things[1].title.should == 'A really big dog'
    sorted_things[2].title.should == 'I love cats'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 spec/models/open_conference_ware/session_type_spec.rb
open_conference_ware-1.0.0.pre3 spec/models/open_conference_ware/session_type_spec.rb
open_conference_ware-1.0.0.pre2 spec/models/open_conference_ware/session_type_spec.rb
open_conference_ware-1.0.0.pre1 spec/models/open_conference_ware/session_type_spec.rb