CLC-3431 Last Statement Balance label is now aligned with value
Merge pull request #2242 from NolanChan/CLC-3431

CLC-3431 Last Statement Balance label is now aligned with value
Created the MyBadges::StudentInfo class
Tried including it in MyBadges::Merged
mangled some tests in the my_badges_spec, so go back and fix that:

-  it "should be able to filter out entries older than one month" do
+  it "should be able to filter out badges entries older than one month" do
     GoogleProxy.stub(:access_granted?).and_return(true)
     GoogleDriveListProxy.stub(:new).and_return(@fake_drive_list)
     GoogleEventsListProxy.stub(:new).and_return(@fake_events_list)
     Oauth2Data.stub(:get_google_email).and_return("tammi.chang.clc@gmail.com")
     badges = MyBadges::Merged.new @user_id
-    filtered_feed = badges.get_feed
-    filtered_feed[:badges].empty?.should_not be_true
-    filtered_feed[:badges]["bdrive"][:count].should == 4
+    debugger
+    filtered_feed = badges.get_feed[:badges]
+    filtered_feed.empty?.should_not be_true
+    filtered_feed["bdrive"][:count].should == 4
     MyBadges::GoogleDrive.any_instance.stub(:is_recent_message?).and_return(true)
     badges.expire_cache
     MyBadges::GoogleDrive.expire @user_id
     badges = MyBadges::Merged.new @user_id
-    mangled_feed = badges.get_feed
-    mangled_feed[:badges].empty?.should_not be_true
-    mangled_feed[:badges]["bdrive"][:count].should == 10
-    mangled_feed[:badges]["bdrive"][:items].size.should == 10
-    mangled_feed[:badges]["bcal"][:count].should == 6
-    mangled_feed[:badges]["bcal"][:items].size.should == 6
-    mangled_feed[:badges]["bcal"][:items].select { |entry|
+    mangled_feed = badges.get_feed[:badges]
+    mangled_feed.empty?.should_not be_true
+    mangled_feed["bdrive"][:count].should == 10
+    mangled_feed["bdrive"][:items].size.should == 10
+    mangled_feed["bcal"][:count].should == 6
+    mangled_feed["bcal"][:items].size.should == 6
+    mangled_feed["bcal"][:items].select { |entry|
       entry[:all_day_event]
     }.size.should == 1
-    mangled_feed[:badges]["bcal"][:items].select { |entry|
+    mangled_feed["bcal"][:items].select { |entry|
       entry[:change_state] if entry[:change_state] == "new"
     }.size.should == 1
-    mangled_feed[:badges]["bcal"][:items].select { |entry|
+    mangled_feed["bcal"][:items].select { |entry|
       entry[:change_state] if entry[:change_state] == "created"
     }.size.should == 1
   end
reverted mangling of my_badges_spec
got three tests partially passing in the MyBadges::StudentInfo model
added specs for student_info
new dummy json files for this change
added a dummy json file for the blog_release_notes_latest that will include the alert field when this is done
revert changes to user_api so the tests will pass. remove student_info at the end of this issue
removed reverences to MyBadges::StudentInfo so they will keep passing
set up what I think the MyBadges::StudentInfo should contain as far as methods are concerned
Added commented out user_api_specs that would fail if the student_info hash were to be removed from it's feed
Moved get_reg_blocks to the correct place in the class (not the module).  Also removed copies of UserApi specs that should be included in the spec and not the class
have three passing tests as well as a commented block of all the user_api_spec tests so that i can implement the necessary ones here
Now passing the folllwing UserApi specs in MyBadges::StudentInfo
rspec ./spec/models/user_api_spec.rb:136 # UserApi should say Chris does not get the academics tab
rspec ./spec/models/user_api_spec.rb:185 # UserApi should not explode when CampusData returns empty
rspec ./spec/models/user_api_spec.rb:131 # UserApi should say random student gets the academics tab