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