Sha256: 6d40ad0c1bf441b0f158efd3dae6727b3938ed7a57586a246d26388fae255b77
Contents?: true
Size: 561 Bytes
Versions: 4
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' RSpec.describe PolishGeeks::DevTools::Validators::Rails do subject { described_class.new(double) } describe '#valid?' do context 'false' do context 'when Rails not defined' do before { allow(Object).to receive(:const_defined?) { false } } it { expect(subject.valid?).to be false } end end context 'true' do context 'when Rails defined' do before { allow(Object).to receive(:const_defined?) { true } } it { expect(subject.valid?).to be true } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems