events_jp 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.travis.yml +8 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +80 -0
- data/Rakefile +9 -0
- data/events_jp.gemspec +27 -0
- data/lib/events_jp/connection.rb +19 -0
- data/lib/events_jp/event.rb +13 -0
- data/lib/events_jp/event_object/atnd.rb +25 -0
- data/lib/events_jp/event_object/connpass.rb +25 -0
- data/lib/events_jp/event_object/doorkeeper.rb +51 -0
- data/lib/events_jp/event_object/event_object.rb +46 -0
- data/lib/events_jp/event_object/zusaar.rb +25 -0
- data/lib/events_jp/version.rb +3 -0
- data/lib/events_jp.rb +13 -0
- data/spec/events_jp/event/atnd_spec.rb +52 -0
- data/spec/events_jp/event/connpass_spec.rb +52 -0
- data/spec/events_jp/event/doorkeeper_spec.rb +39 -0
- data/spec/events_jp/event/event_object_spec.rb +39 -0
- data/spec/events_jp/event/zusaar_spec.rb +52 -0
- data/spec/events_jp/event_spec.rb +26 -0
- data/spec/fixtures/event/atnd.json +2 -0
- data/spec/fixtures/event/atnd_ruby.json +2 -0
- data/spec/fixtures/event/connpass.json +2 -0
- data/spec/fixtures/event/connpass_ruby.json +2 -0
- data/spec/fixtures/event/doorkeeper.json +2 -0
- data/spec/fixtures/event/partake.json +2 -0
- data/spec/fixtures/event/zusaar.json +2 -0
- data/spec/fixtures/event/zusaar_ruby.json +2 -0
- data/spec/spec_helper.rb +37 -0
- metadata +161 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
$:.unshift(File.expand_path('../', __FILE__))
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe 'EventsJp::Event' do
|
5
|
+
describe '.get_all' do
|
6
|
+
context 'with keyword' do
|
7
|
+
before(:each) do
|
8
|
+
@result = EventsJp.get_events(keyword: 'Ruby', service_limit: 100)
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'return each 100 events' do
|
12
|
+
expect(@result.count).to be >= 210
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context 'no keyword' do
|
17
|
+
before(:each) do
|
18
|
+
@result = EventsJp.get_events(service_limit: 100)
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'return each 100 events' do
|
22
|
+
expect(@result.count).to eq(400)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|