Sha256: 0374d02253313b4bba60d70107fbe3d5a44c00127bd4ad8681d4fdab423938e4
Contents?: true
Size: 559 Bytes
Versions: 2
Compression:
Stored size: 559 Bytes
Contents
require 'spec_helper' ALIGN_MODES = { :left => '1', :right => '3', :center => '2', } describe MovingsignApi::AlignMode do describe '::parse' do it "Symbol" do # valid keys ALIGN_MODES.keys.each do |key| expect(described_class.parse(key).key).to eq key end # invalid keys expect {described_class.parse(:invalid).key}.to raise_error(MovingsignApi::InvalidInputError) expect {described_class.parse(nil).key}.to raise_error(MovingsignApi::InvalidInputError) end it 'Code' do end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
movingsign_api-0.0.2 | spec/align_mode_spec.rb |
movingsign_api-0.0.1 | spec/align_mode_spec.rb |