spec/integration/yard/arstotzka/options_spec.rb in arstotzka-1.4.4 vs spec/integration/yard/arstotzka/options_spec.rb in arstotzka-1.5.0

- old
+ new

@@ -47,23 +47,26 @@ Drink.new(name: 'tequila', price: 8.25), Drink.new(name: 'vodka', price: 6.05) ] end + # rubocop:disable RSpec/LeakyConstantDeclaration before do module Arstotzka::TypeCast def to_symbolized_hash(value) value.symbolize_keys end end end + # rubocop:enable RSpec/LeakyConstantDeclaration it 'returns inflated drinks' do expect(instance.drinks).to eq(expected) end end + # rubocop:disable RSpec/SubjectStub describe 'Using cached, compact, after and full_path' do let(:clazz) { Application } let(:hash) do { @@ -83,13 +86,11 @@ Person.new('Arthur') ] end before do - # rubocop:disable RSpec/SubjectStub allow(instance).to receive(:warn) - # rubocop:enable RSpec/SubjectStub end it 'Returns created users' do expect(instance.users).to eq(expected) end @@ -98,9 +99,10 @@ instance.users instance.users expect(instance).to have_received(:warn).exactly(3).times end end + # rubocop:enable RSpec/SubjectStub describe 'working with snake case hash' do let(:clazz) { JobSeeker } let(:hash) do