Sha256: 6c6935e4b1e4b3abea6d2609317b019b0029950f0bc103bdf2585bb6d0bf4271

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 Bytes

Contents

RSpec.describe BingAdsRubySdk::OAuth2::FsStore do
  after do
    File.unlink('./.abc') if File.file?('./.abc')
  end
  let(:store) { described_class.new('.abc') }

  context "when not empty" do
    before { store.write(a: 1, b: "2") }
    it "writes and read properly" do
      expect(store.read).to eq("a" => 1, "b" => "2")
    end
  end

  context "when empty" do
    it "reads properly" do
      expect(store.read).to be nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bing_ads_ruby_sdk-1.3.4 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
bing_ads_ruby_sdk-1.3.3 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
bing_ads_ruby_sdk-1.3.2 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
bing_ads_ruby_sdk-1.3.1 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
bing_ads_ruby_sdk-1.3.0 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
bing_ads_ruby_sdk-1.2.0 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb
bing_ads_ruby_sdk-1.1.1 spec/bing_ads_ruby_sdk/oauth2/fs_store_spec.rb