Sha256: 23b0be79f4bf967ce9b997d344d765aea83b2319e2db49dd7a8ded04f68084df
Contents?: true
Size: 1.3 KB
Versions: 21
Compression:
Stored size: 1.3 KB
Contents
require 'rails_helper' RSpec.describe Bobot do describe '#configure' do it 'sets correct configuration' do Bobot.configure do |config| config.app_id = 'app_id' config.app_secret = 'app_secret' config.verify_token = 'verify_token' config.skip_code = '' config.domains = " test.ltd, domain.ltd " config.async = true config.pages << Bobot::Page.new( slug: 'slug', language: 'language', page_access_token: 'page_access_token', page_id: 'page_id', get_started_payload: 'get_started_payload', ) end expect(Bobot.config.app_id).to eql('app_id') expect(Bobot.config.app_secret).to eql('app_secret') expect(Bobot.config.verify_token).to eql('verify_token') expect(Bobot.config.skip_code).to eq('') expect(Bobot.config.domains).to eql(["test.ltd", "domain.ltd"]) expect(Bobot.config.async).to eql(true) expect(Bobot.config.pages[0].slug).to eql('slug') expect(Bobot.config.pages[0].language).to eql('language') expect(Bobot.config.pages[0].page_access_token).to eql('page_access_token') expect(Bobot.config.pages[0].page_id).to eql('page_id') expect(Bobot.config.pages[0].get_started_payload).to eql('get_started_payload') end end end
Version data entries
21 entries across 21 versions & 1 rubygems