Add validation to text embed key

This commit is contained in:
Andy Meneely
2015-08-09 22:15:10 -04:00
parent 40ac6d2b6b
commit 354a97f100
3 changed files with 34 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
require 'spec_helper'
require 'squib/args/embed_key'
describe Squib::Args::EmbedKey do
context '#validate_key' do
it 'converts to string' do
expect(subject.validate_key(2.5)).to eq ('2.5')
end
end
end