Sha256: e712e5a40d7ce9bfb1aa4b2ef69c6b9c4b0c6b492e5b144a7f5f702b3e1b0808
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Rating::Config, '.rate_table' do if ENV['CONFIG_ENABLED'] != 'true' context 'when rating.yml does not exist' do it { expect(subject.rate_table).to eq 'rating_rates' } end end if ENV['CONFIG_ENABLED'] == 'true' context 'when rating.yml exists' do it { expect(subject.rate_table).to eq 'reviews' } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rating-0.11.0 | spec/config/rate_table_spec.rb |
rating-0.10.0 | spec/config/rate_table_spec.rb |
rating-0.9.0 | spec/config/rate_table_spec.rb |