spec/integration/yard/arstotzka/fetcher_spec.rb in arstotzka-1.0.4 vs spec/integration/yard/arstotzka/fetcher_spec.rb in arstotzka-1.1.0
- old
+ new
@@ -3,16 +3,16 @@
require 'spec_helper'
describe Arstotzka::Fetcher do
describe 'yard' do
describe '#fetch' do
- subject(:fetcher) { described_class.new(hash, instance, path: path, **options) }
+ subject(:fetcher) { described_class.new(hash, instance, **options) }
let(:instance) { Account.new }
- let(:path) { 'transactions' }
let(:options) do
{
- clazz: Transaction,
+ path: 'transactions',
+ klass: Transaction,
after: :filter_income
}
end
let(:hash) do
{