diff --git a/spec/unit/asset_sync_spec.rb b/spec/unit/asset_sync_spec.rb index c921ddb5..afd7c242 100644 --- a/spec/unit/asset_sync_spec.rb +++ b/spec/unit/asset_sync_spec.rb @@ -73,7 +73,8 @@ it "log_silently? should always be true if ENV['RAILS_GROUPS'] == 'assets'" do AssetSync.config.log_silently = false - expect(ENV).to receive(:[]).with('RAILS_GROUPS').and_return('assets') + # make sure ENV is actually being checked ... + expect(ENV).to receive(:[]).with('RAILS_GROUPS').and_return('assets') expect(AssetSync.config.log_silently?).to eq(true) end