spec/bobot/user_spec.rb in bobot-1.0.53 vs spec/bobot/user_spec.rb in bobot-2.1.0
- old
+ new
@@ -14,11 +14,13 @@
"/#{fb_id}"
)
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 '.get_profile' do
context 'with a successful response' do
before do