Sha256: 9e2f6b144c3949d766c526f43948474f46396f30e9ffb03cab09a5b62c0dbc2d

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'

describe ENUtils::Core do
  before do
    allow(Thrift::HTTPClientTransport).to receive(:new) { nil }
    allow(Thrift::BinaryProtocol).to receive(:new) { nil }

    us = double('Evernote::EDAM::UserStore::UserStore::Client')
    allow(Evernote::EDAM::UserStore::UserStore::Client).to receive(:new) { us }
    allow(us).to receive_messages(checkVersion: true,
                                  getNoteStoreUrl: 'http://note_store_url/')
  end
  it {
    expect(ENUtils::Core.new('dummy_token')).to be_instance_of(ENUtils::Core)
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
evernote_utils-0.1.3 spec/evernote_utils_spec.rb
evernote_utils-0.1.2 spec/evernote_utils_spec.rb
evernote_utils-0.1.1 spec/evernote_utils_spec.rb
evernote_utils-0.1.0 spec/evernote_utils_spec.rb
evernote_utils-0.0.9 spec/evernote_utils_spec.rb
evernote_utils-0.0.4 spec/evernote_utils_spec.rb