spec/bobot/subscription_spec.rb in bobot-1.0.53 vs spec/bobot/subscription_spec.rb in bobot-2.1.0
- old
+ new
@@ -13,11 +13,13 @@
'/subscribed_apps',
)
end
before do
- Bobot.page_access_token = access_token
- Bobot.page_id = page_id
+ Bobot.config.pages << Bobot::Configuration::Page.new(
+ page_access_token: access_token,
+ page_id: page_id,
+ )
end
describe '.set' do
context 'with a successful response' do
before do