spec/dentaku_spec.rb in dentaku-3.3.2 vs spec/dentaku_spec.rb in dentaku-3.3.3

- old
+ new

@@ -34,6 +34,13 @@ it 'evaluates with class-level aliases' do Dentaku.aliases = { roundup: ['roundupup'] } expect(Dentaku.evaluate('roundupup(6.1)')).to eq(7) end + + it 'sets caching opt-in flags' do + expect { + Dentaku.enable_caching! + }.to change { Dentaku.cache_ast? }.from(false).to(true) + .and change { Dentaku.cache_dependency_order? }.from(false).to(true) + end end