vcr
require 'vcr'
VCR.configure do |c|
c.ignore_localhost = true
c.cassette_library_dir = 'spec/vcr_cassettes'
c.hook_into :webmock
c.configure_rspec_metadata!
end
RSpec.describe Api::AnyClass do
subject { described_class.new }
describe "#valid_credentials?" do
context "valid", vcr: { cassette_name: "any/folder/you/like/valid" } do
it { expect(subject.valid_credentials?(email: email, username: username, password: password, signature: signature)).to be_truthy }
end
end
end