Sha256: 584f13f14ede373ed2818d98d7327801e55dafd00a15ab92cd1902990cbef517

Contents?: true

Size: 697 Bytes

Versions: 2

Compression:

Stored size: 697 Bytes

Contents

require 'rails_helper'

RSpec.describe Bobot do
  describe '#configure' do
    it 'sets correct configuration' do
      Bobot.configure do |config|
        config.app_id = '1'
        config.app_secret = '2'
        config.page_access_token = '3'
        config.verify_token = '4'
        config.page_id = '5'
        config.debug_log = true
        config.async = true
      end
      expect(Bobot.app_id).to eql('1')
      expect(Bobot.app_secret).to eql('2')
      expect(Bobot.page_access_token).to eql('3')
      expect(Bobot.verify_token).to eql('4')
      expect(Bobot.page_id).to eql('5')
      expect(Bobot.debug_log).to eql(true)
      expect(Bobot.async).to eql(true)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bobot-1.0.53 spec/bobot/bobot_spec.rb
bobot-1.0.52 spec/bobot/bobot_spec.rb