Sha256: f19acc967c7529b2960a1633b45b26a00bd414b724b1a78b00623f7352f87a2e
Contents?: true
Size: 957 Bytes
Versions: 2
Compression:
Stored size: 957 Bytes
Contents
require 'spec_helper' require 'support/client_helper' describe "OandaAPI::Resource::Labs::CalendarEvent" do let(:client) { ClientHelper.client } it "gets economic calendar events related to an instrument", :vcr do VCR.use_cassette("calendar(instrument_and_period).get") do events = client.calendar(instrument: "EUR_CAD", period: 604800).get expect(events.first).to be_an OandaAPI::Resource::Labs::CalendarEvent end end it "gets all economic calendar events for a period", :vcr do VCR.use_cassette("calendar(period).get") do events = client.calendar(period: 86400).get expect(events.first).to be_an OandaAPI::Resource::Labs::CalendarEvent end end it "can use the alias: calendar_events", :vcr do VCR.use_cassette("calendar_events(period).get") do events = client.calendar_events(period: 86400).get expect(events.first).to be_an OandaAPI::Resource::Labs::CalendarEvent end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oanda_api-0.9.6 | spec/oanda_api/examples/calendar_spec.rb |
oanda_api-0.9.5 | spec/oanda_api/examples/calendar_spec.rb |