spec/unit/endpoints_spec.rb in ayadn-1.8.2 vs spec/unit/endpoints_spec.rb in ayadn-2.0
- old
+ new
@@ -9,15 +9,18 @@
default: 100,
conversations: 12
},
timeline: {
directed: 1,
- deleted: 0,
html: 0,
annotations: 1
}
})
+ Ayadn::Settings.stub(:global).and_return({
+ scrolling: false,
+ force: false
+ })
end
describe '#token_info' do
it "returns the Token url" do
expect(Ayadn::Endpoints.new.token_info).to eq 'https://api.app.net/token/?access_token=XXX'
end
@@ -32,10 +35,10 @@
expect(Ayadn::Endpoints.new.global({since_id: 336699})).to eq 'https://api.app.net/posts/stream/global?access_token=XXX&count=100&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1&since_id=336699'
end
end
describe "#checkins" do
it "returns the Checkins url" do
- expect(Ayadn::Endpoints.new.checkins({count: 66, html: 1})).to eq 'https://api.app.net/posts/stream/explore/checkins?access_token=XXX&count=66&include_html=1&include_directed_posts=1&include_deleted=0&include_annotations=1'
+ expect(Ayadn::Endpoints.new.checkins({count: 66, html: 1})).to eq 'https://api.app.net/posts/stream/explore/checkins?access_token=XXX&count=66&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'
end
end
describe '#trending' do
it "returns the trending url" do
expect(Ayadn::Endpoints.new.trending({deleted: 1})).to eq 'https://api.app.net/posts/stream/explore/trending?access_token=XXX&count=100&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'