spec/unit/a9n_spec.rb in a9n-0.8.2 vs spec/unit/a9n_spec.rb in a9n-0.8.3

- old
+ new

@@ -35,9 +35,25 @@ expect(subject.env).to eq('foo_env') expect(subject.env.foo_env?).to eq(true) expect(subject.env.production?).to eq(false) end end + + context 'unknown env' do + it do + expect { subject.env }.to raise_error(A9n::UnknownEnvError) + end + end + end + + describe '.groups' do + before do + subject.env = 'development' + end + + it do + expect(subject.groups).to eq(['default', 'development']) + end end describe '.app' do context 'when rails not found' do before do