spec/models/forexrates_spec.rb in finnhub_ruby-1.1.4 vs spec/models/forexrates_spec.rb in finnhub_ruby-1.1.5

- old
+ new

@@ -4,33 +4,26 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.3.1 +OpenAPI Generator version: 5.2.0 =end require 'spec_helper' require 'json' require 'date' # Unit tests for FinnhubRuby::Forexrates # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe 'Forexrates' do - before do - # run before each test - @instance = FinnhubRuby::Forexrates.new - end +describe FinnhubRuby::Forexrates do + let(:instance) { FinnhubRuby::Forexrates.new } - after do - # run after each test - end - describe 'test an instance of Forexrates' do it 'should create an instance of Forexrates' do - expect(@instance).to be_instance_of(FinnhubRuby::Forexrates) + expect(instance).to be_instance_of(FinnhubRuby::Forexrates) end end describe 'test attribute "base"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers