Sha256: 199f255796b714b591d991f43f68d673771c6b48c59b7879aa6fb69ac59a50ac
Contents?: true
Size: 984 Bytes
Versions: 6
Compression:
Stored size: 984 Bytes
Contents
describe PlayTime::Track do describe '.validate!' do subject { PlayTime::Track.validate!(track) } context 'when alpha' do let(:track) { 'alpha' } it "is true" do expect { subject }.not_to raise_error end end context 'when beta' do let(:track) { 'beta' } it "is true" do expect { subject }.not_to raise_error end end context 'when rollout' do let(:track) { 'rollout' } it "is true" do expect { subject }.not_to raise_error end end context 'when production' do let(:track) { 'production' } it "is true" do expect { subject }.not_to raise_error end end context 'when invalid' do let(:track) { 'something else' } it "is false" do expect { subject }.to raise_error PlayTime::Track::InvalidTrack end end end end
Version data entries
6 entries across 6 versions & 1 rubygems