youroom_api 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ module Youroom
15
15
  end
16
16
 
17
17
  def params
18
- { :ids => ids.join(",") }
18
+ { 'ids[]' => ids.join(",") }
19
19
  end
20
20
  end
21
21
  end
@@ -3,7 +3,7 @@
3
3
  module Youroom
4
4
  class MarkUnread < Mark
5
5
  def path
6
- File.join(url, 'unmark_read')
6
+ File.join(url, 'mark_unread')
7
7
  end
8
8
  end
9
9
  end
@@ -34,6 +34,6 @@ describe Youroom::MarkRead do
34
34
 
35
35
  context "#params" do
36
36
  subject { mark_read }
37
- its(:params) { should == { :ids => '1,2,3' } }
37
+ its(:params) { should == { 'ids[]' => '1,2,3' } }
38
38
  end
39
39
  end
@@ -1,14 +1,14 @@
1
1
  require File.expand_path("../spec_helper", File.dirname(__FILE__))
2
2
 
3
3
  describe Youroom::MarkUnread do
4
- let :mark_read do
4
+ let :mark_unread do
5
5
  Youroom::MarkUnread.new(access_token, [1,2,3])
6
6
  end
7
7
 
8
8
  describe "#initialize" do
9
9
  describe "when can create instance" do
10
10
  context "ids are Array class" do
11
- subject { mark_read }
11
+ subject { mark_unread }
12
12
  it { should be_a(Youroom::MarkUnread) }
13
13
  its(:url) { should == Youroom::BASE_URL }
14
14
  its(:ids) { should == ["1","2","3"] }
@@ -28,12 +28,12 @@ describe Youroom::MarkUnread do
28
28
  end
29
29
 
30
30
  context "#path" do
31
- subject { mark_read }
32
- its(:path) { should == File.join(mark_read.url, 'unmark_read') }
31
+ subject { mark_unread }
32
+ its(:path) { should == File.join(mark_unread.url, 'mark_unread') }
33
33
  end
34
34
 
35
35
  context "#params" do
36
- subject { mark_read }
37
- its(:params) { should == { :ids => '1,2,3' } }
36
+ subject { mark_unread }
37
+ its(:params) { should == { 'ids[]' => '1,2,3' } }
38
38
  end
39
39
  end
data/youroom_api.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'youroom_api'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
 
5
5
  s.authors = ['pochi']
6
6
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - pochi