spec/bearcat/client/sections_spec.rb in bearcat-1.3.46 vs spec/bearcat/client/sections_spec.rb in bearcat-1.3.47
- old
+ new
@@ -44,6 +44,18 @@
section['course_id'].should == 3
section['id'].should == 72
section['name'].should == 'Section003'
end
+ it "crosslist a section" do
+ stub_post(@client, "/api/v1/sections/72/crosslist/2").to_return(json_response("update_section.json"))
+ section = @client.crosslist_section(72, 2)
+ section['nonxlist_course_id'].should == 2
+ end
+
+ it "de-crosslist a section" do
+ stub_delete(@client, "/api/v1/sections/72/crosslist").to_return(json_response("update_section.json"))
+ section = @client.decrosslist_section(72)
+ section['nonxlist_course_id'].should == 2
+ end
+
end
\ No newline at end of file