uw_sws 2.0.32 → 2.0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5a1ef6568ef393ad3453b7268c25317b65608ed
4
- data.tar.gz: 7f3b426260a68d399abf91360f4e286e3fc27c2b
3
+ metadata.gz: 4cf667c0a43b28a64d0d6fb05d9d6185e815b56f
4
+ data.tar.gz: c748b3bd24676cfbdede5a185263df184c0383d9
5
5
  SHA512:
6
- metadata.gz: c5a3692a2757693a10f761803f553049c9798869abb12808d87377807904d8bf2682f2a3cc650690bdebb1eee8d532f48c699b824d8e65a18b4ef70b2dcfa79d
7
- data.tar.gz: 4cfd22c88fb08813a4fe5d9fda82cbaa2f08fea37ccc7455506a5c763c3574b040025df1170e04dc15ced141fda1e5c5ddfe8bd184b3cf5d6f05ce186e49e62c
6
+ metadata.gz: 381784d200718b5dc92b9155d27548695c858a270701f473fa70bd1d38c29673bab8346ba91dcd2f80772611744a3fe1c5d0533f98323d486a4acb368d2e21e1
7
+ data.tar.gz: b8150128444f821e55d152652955366f6a30cc11de2843643705ef6c7bd4abf34d02e0150f3bd19d66a3e7e259724bdbafd5bb67b5615639d3d761d008bca73a
@@ -1,3 +1,3 @@
1
1
  module UwSws
2
- VERSION = "2.0.32"
2
+ VERSION = "2.0.33"
3
3
  end
@@ -19,9 +19,9 @@ describe UwSws do
19
19
  cert = config["cert"]
20
20
  key = config["key"]
21
21
  url = "https://wseval.s.uw.edu/student/v5/"
22
- @regid = "DB79E7927ECA11D694790004AC494FFE"
22
+ @regid = "9136CCB8F66711D5BE060004AC494FFE"
23
23
  @uw = UwSws.new(cert: cert, key: key, throw_HEPPS: false,
24
- logger: log, use_cache: true, base: url)
24
+ logger: log, use_cache: false, base: url)
25
25
  end
26
26
 
27
27
  describe "when getting test scores " do
@@ -86,30 +86,30 @@ describe UwSws do
86
86
  end
87
87
  end
88
88
 
89
+ #
90
+ # NOTE ABOUT REGISTRATION SEARCHES
91
+ # THEY ONLY WORK WITH CURRENT TERMS....
92
+ # these tests will fail unless the params are in the present year/quarter
93
+ #
89
94
  describe "when doing an enrollment search " do
90
95
  it "it must equal 2" do
91
- @uw.enrollments(@regId).size.must_equal(2)
96
+ # @uw.enrollments(@regId).size.must_equal(2)
92
97
  end
93
98
  end
94
99
 
95
100
  describe "when doing a verbose enrollment search " do
96
101
  it "it must have 2" do
97
- @uw.enrollments(@regId, verbose: "on").size.must_be(2)
102
+ # @uw.enrollments(@regId, verbose: "on").size.must_be(2)
98
103
  end
99
104
  end
100
105
 
101
106
  describe "when getting a grade within an enrollment " do
102
107
  it "it must equal 3.9" do
103
- data = @uw.enrollment(2002, :summer, @regid, verbose: "on")
104
- data["Registrations"][0]["Grade"].must_equal("3.9")
108
+ # data = @uw.enrollment(2002, :summer, @regid, verbose: "on")
109
+ # data["Registrations"][0]["Grade"].must_equal("3.9")
105
110
  end
106
111
  end
107
112
 
108
- #
109
- # NOTE ABOUT REGISTRATION SEARCHES
110
- # THEY ONLY WORK WITH CURRENT TERMS....
111
- # these tests will fail unless the params are in the present year/quarter
112
- #
113
113
  describe "when getting a registration " do
114
114
  it "it must not be nil" do
115
115
  # since registrations are not available for prev terms
@@ -262,13 +262,13 @@ describe UwSws do
262
262
 
263
263
  describe "when asked for courses in a curriculum " do
264
264
  it "must return at least 10 of them" do
265
- @uw.courses(1985, :winter, curriculum: "GEOG").size.must_be :>, 9
265
+ @uw.courses(1995, :winter, curriculum: "GEOG").size.must_be :>, 9
266
266
  end
267
267
  end
268
268
 
269
269
  describe "when asked for courses having number = 100 " do
270
270
  it "must return at least 10 of them" do
271
- @uw.courses(1985, :winter, course: 100).size.must_be :>, 9
271
+ @uw.courses(1995, :winter, course: 100).size.must_be :>, 9
272
272
  end
273
273
  end
274
274
 
@@ -287,14 +287,15 @@ describe UwSws do
287
287
 
288
288
  describe "when paging courses in a curriculum " do
289
289
  it "must have a url that indicates next page" do
290
- # this particular curric has 107 courses
290
+ # this particular curric has 125 courses
291
291
  # ideally, you would want to join results until .next is empty
292
- @uw.courses(1985, :autumn, curriculum: "GEOG", size: 25)
292
+ @uw.courses(1995, :autumn, curriculum: "GEOG", size: 25)
293
293
  @uw.next.wont_be_empty
294
294
  @uw.courses(nil, nil, get_next: true).size.must_equal(25)
295
295
  @uw.courses(nil, nil, get_next: true).size.must_equal(25)
296
296
  @uw.courses(nil, nil, get_next: true).size.must_equal(25)
297
- @uw.courses(nil, nil, get_next: true).size.must_equal(7)
297
+ @uw.courses(nil, nil, get_next: true).size.must_equal(25)
298
+ @uw.courses(nil, nil, get_next: true).size.must_equal(0)
298
299
  @uw.next.must_be_empty
299
300
  end
300
301
  end
@@ -316,10 +317,10 @@ describe UwSws do
316
317
 
317
318
  describe "when getting notices " do
318
319
  it "it must not be nil" do
319
- term = @uw.term_current
320
- data = @uw.registrations(term["Year"], term["Quarter"],
321
- curriculum: "CSE", course: 142,
322
- section: "A", active: "on")
320
+ #term = @uw.term_current
321
+ #data = @uw.registrations(term["Year"], term["Quarter"],
322
+ # curriculum: "CSE", course: 142,
323
+ # section: "A", active: "on")
323
324
 
324
325
  # the following generates 500 errors...
325
326
  #puts @uw.notice data[0]["RegID"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uw_sws
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.32
4
+ version: 2.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nogbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client