youroom_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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 :
|
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 {
|
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 {
|
32
|
-
its(:path) { should == File.join(
|
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 {
|
37
|
-
its(:params) { should == {
|
36
|
+
subject { mark_unread }
|
37
|
+
its(:params) { should == { 'ids[]' => '1,2,3' } }
|
38
38
|
end
|
39
39
|
end
|
data/youroom_api.gemspec
CHANGED