codeforces 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/codeforces/models/contests.rb +1 -1
- data/lib/codeforces/models/users.rb +1 -1
- data/lib/codeforces/version.rb +1 -1
- data/spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/_type_CF/.yml +2080 -0
- data/spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_type_CF/.yml +2080 -0
- data/spec/helper_spec.rb +8 -1
- metadata +5 -1
data/spec/helper_spec.rb
CHANGED
@@ -4,12 +4,19 @@ describe Codeforces::Helper, :vcr => true do
|
|
4
4
|
|
5
5
|
let!(:client) { Codeforces::Client.new }
|
6
6
|
|
7
|
-
describe "#contests" do
|
7
|
+
describe "#contests", :current => true do
|
8
8
|
|
9
9
|
context "contests.grep :name => /#10/" do
|
10
10
|
subject! { client.contests.grep :name => /#10/ }
|
11
11
|
it { expect(subject).to be_a Array }
|
12
12
|
it { expect(subject.map &:name).to include "Codeforces Round #100" }
|
13
|
+
it { expect(subject.map &:name).to include "Codeforces Beta Round #10" }
|
14
|
+
end
|
15
|
+
|
16
|
+
context "contests.grep :name => /#10/, :type => CF" do
|
17
|
+
subject! { client.contests.grep :name => /#10/, :type => "CF" }
|
18
|
+
it { expect(subject.map &:name).to include "Codeforces Round #100" }
|
19
|
+
it { expect(subject.map &:name).to_not include "Codeforces Beta Round #10" }
|
13
20
|
end
|
14
21
|
|
15
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeforces
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroyuki Sano
|
@@ -170,6 +170,8 @@ files:
|
|
170
170
|
- spec/api_fixtures/Codeforces_Helper/_contest/contest_154/.yml
|
171
171
|
- spec/api_fixtures/Codeforces_Helper/_contest/contest_Codeforces_Round_109_Div_1_/.yml
|
172
172
|
- spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/.yml
|
173
|
+
- spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/_type_CF/.yml
|
174
|
+
- spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_type_CF/.yml
|
173
175
|
- spec/api_fixtures/Codeforces_Helper/_each_contest/.yml
|
174
176
|
- spec/api_fixtures/Codeforces_Helper/_each_contest/it_is_called_450_or_more_times.yml
|
175
177
|
- spec/api_fixtures/Codeforces_Helper/_each_status/first_user/.yml
|
@@ -223,6 +225,8 @@ test_files:
|
|
223
225
|
- spec/api_fixtures/Codeforces_Helper/_contest/contest_154/.yml
|
224
226
|
- spec/api_fixtures/Codeforces_Helper/_contest/contest_Codeforces_Round_109_Div_1_/.yml
|
225
227
|
- spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/.yml
|
228
|
+
- spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/_type_CF/.yml
|
229
|
+
- spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_type_CF/.yml
|
226
230
|
- spec/api_fixtures/Codeforces_Helper/_each_contest/.yml
|
227
231
|
- spec/api_fixtures/Codeforces_Helper/_each_contest/it_is_called_450_or_more_times.yml
|
228
232
|
- spec/api_fixtures/Codeforces_Helper/_each_status/first_user/.yml
|