Sha256: 256313bdbd7678cc3bf2fdedb434ac5d6f42f3a25a171d80f7419444e511f615

Contents?: true

Size: 313 Bytes

Versions: 13

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe Notion::Config do
  describe '#configure' do
    before do
      Notion.configure do |config|
        config.token = 'a token'
      end
    end

    it 'sets token' do
      expect(Notion.config.token).to eq 'a token'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
notion-ruby-client-1.2.2 spec/notion/config_spec.rb
notion-ruby-client-1.2.1 spec/notion/config_spec.rb
notion-ruby-client-1.2.0 spec/notion/config_spec.rb
notion-ruby-client-1.1.0 spec/notion/config_spec.rb
notion-ruby-client-1.0.0 spec/notion/config_spec.rb
notion-ruby-client-1.0.0.pre.beta2 spec/notion/config_spec.rb
notion-ruby-client-1.0.0.pre.beta1 spec/notion/config_spec.rb
notion-ruby-client-0.1.0.pre.beta1 spec/notion/config_spec.rb
notion-ruby-client-0.0.8 spec/notion/config_spec.rb
notion-ruby-client-0.0.7 spec/notion/config_spec.rb
notion-ruby-client-0.0.6 spec/notion/config_spec.rb
notion-ruby-client-0.0.5 spec/notion/config_spec.rb
notion-ruby-client-0.0.4 spec/notion/config_spec.rb