|
8 | 8 | end |
9 | 9 |
|
10 | 10 | describe "#rankings" do |
11 | | - let(:category){ described_class.new(2017) } |
| 11 | + describe "for 2017" do |
| 12 | + let(:category){ described_class.new(2017) } |
| 13 | + |
| 14 | + it "should return a list of ranked schools" do |
| 15 | + expect(category.rankings.count).to eql(11) |
| 16 | + end |
| 17 | + |
| 18 | + it "should contain the expected rankings" do |
| 19 | + expect(category.rankings.first).to eql({ |
| 20 | + :rank=>1, |
| 21 | + :tie=>false, |
| 22 | + :school_name=>"Georgetown University", |
| 23 | + :school_city=>"Washington, DC", |
| 24 | + :tuition=>"$57,576 per year (full-time)", |
| 25 | + :enrollment=>"1,721" |
| 26 | + }) |
| 27 | + end |
| 28 | + end |
| 29 | + |
| 30 | + describe "for 2016" do |
| 31 | + let(:category){ described_class.new(2016) } |
| 32 | + |
| 33 | + it "should return a list of ranked schools" do |
| 34 | + expect(category.rankings.count).to eql(11) |
| 35 | + end |
| 36 | + |
| 37 | + it "should contain the expected rankings" do |
| 38 | + expect(category.rankings.first).to eql({ |
| 39 | + :rank=>1, |
| 40 | + :tie=>false, |
| 41 | + :school_name=>"Georgetown University", |
| 42 | + :school_city=>"Washington, DC", |
| 43 | + :tuition=>"$55,255 per year (full-time)", |
| 44 | + :enrollment=>"1,725" |
| 45 | + }) |
| 46 | + end |
| 47 | + end |
| 48 | + |
| 49 | + describe "for 2015" do |
| 50 | + let(:category){ described_class.new(2015) } |
| 51 | + |
| 52 | + it "should return a list of ranked schools" do |
| 53 | + expect(category.rankings.count).to eql(12) |
| 54 | + end |
12 | 55 |
|
13 | | - it "should return a list of ranked schools" do |
14 | | - expect(category.rankings.count).to eql(11) |
| 56 | + it "should contain the expected rankings" do |
| 57 | + expect(category.rankings.first).to eql({ |
| 58 | + :rank=>1, |
| 59 | + :tie=>false, |
| 60 | + :school_name=>"Georgetown University", |
| 61 | + :school_city=>"Washington, DC", |
| 62 | + :tuition=>"$53,130 per year (full-time)", |
| 63 | + :enrollment=>"1,719" |
| 64 | + }) |
| 65 | + end |
15 | 66 | end |
16 | 67 |
|
17 | | - it "should contain the expected rankings" do |
18 | | - expect(category.rankings.first).to eql({ |
19 | | - :rank=>1, |
20 | | - :tie=>false, |
21 | | - :school_name=>"Georgetown University", |
22 | | - :school_city=>"Washington, DC", |
23 | | - :tuition=>"$57,576 per year (full-time)", |
24 | | - :enrollment=>"1,721" |
25 | | - }) |
| 68 | + describe "for 2014" do |
| 69 | + let(:category){ described_class.new(2014) } |
| 70 | + |
| 71 | + it "should return a list of ranked schools" do |
| 72 | + expect(category.rankings.count).to eql(11) |
| 73 | + end |
| 74 | + |
| 75 | + it "should contain the expected rankings" do |
| 76 | + expect(category.rankings.first).to eql({ |
| 77 | + :rank=>1, |
| 78 | + :tie=>false, |
| 79 | + :school_name=>"Georgetown University", |
| 80 | + :school_city=>"Washington, DC", |
| 81 | + :tuition=>"$50,890 per year (full-time)", |
| 82 | + :enrollment=>"1,694" |
| 83 | + }) |
| 84 | + end |
| 85 | + end |
| 86 | + |
| 87 | + describe "for 2013" do |
| 88 | + let(:category){ described_class.new(2013) } |
| 89 | + |
| 90 | + it "should return a list of ranked schools" do |
| 91 | + expect(category.rankings.count).to eql(11) |
| 92 | + end |
| 93 | + |
| 94 | + it "should contain the expected rankings" do |
| 95 | + expect(category.rankings.first).to eql({ |
| 96 | + :rank=>1, |
| 97 | + :tie=>false, |
| 98 | + :school_name=>"Georgetown University", |
| 99 | + :school_city=>"Washington, DC", |
| 100 | + :tuition=>"$48,835 per year (full-time)", |
| 101 | + :enrollment=>"1,683" |
| 102 | + }) |
| 103 | + end |
| 104 | + end |
| 105 | + |
| 106 | + describe "for 2012" do |
| 107 | + let(:category){ described_class.new(2012) } |
| 108 | + |
| 109 | + it "should return a list of ranked schools" do |
| 110 | + expect(category.rankings.count).to eql(11) |
| 111 | + end |
| 112 | + |
| 113 | + it "should contain the expected rankings" do |
| 114 | + expect(category.rankings.first).to eql({ |
| 115 | + :rank=>1, |
| 116 | + :tie=>false, |
| 117 | + :school_name=>"Georgetown University", |
| 118 | + :school_city=>"Washington, DC", |
| 119 | + :tuition=>"Full-time: $46,865 per year", |
| 120 | + :enrollment=>"1,671" |
| 121 | + }) |
| 122 | + end |
26 | 123 | end |
27 | 124 | end |
28 | 125 | end |
0 commit comments