Sha256: 7592624caa19dcfb64a7b136c4146b58ea2d306ad31fc66b02f5acdf4b37ea19
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Attachy::File, '#config' do context 'when config does not exist' do it 'returns the config data' do expect(described_class.config).to eq nil end end context 'when config exists' do let!(:application) { double } before do allow(Rails).to receive(:application) { application } allow(application).to receive(:config_for).with(:attachy) { :config } end it 'returns the config data' do expect(described_class.config).to eq :config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attachy-0.4.1 | spec/models/attachy/file/config_spec.rb |