spec/bobot/event/common_spec.rb in bobot-1.0.53 vs spec/bobot/event/common_spec.rb in bobot-2.1.0
- old
+ new
@@ -35,10 +35,12 @@
end
let(:access_token) { 'access_token' }
before do
- Bobot.page_access_token = access_token
+ Bobot.config.pages << Bobot::Configuration::Page.new(
+ page_access_token: access_token,
+ )
end
subject { described_class.new(payload) }
describe '.sender' do