spec/adhearsion/call_controller/output/formatter_spec.rb in adhearsion-2.1.2 vs spec/adhearsion/call_controller/output/formatter_spec.rb in adhearsion-2.1.3

- old
+ new

@@ -77,12 +77,13 @@ it "detects a Numeric object" do number = 123 subject.detect_type(number).should be :numeric end - it "returns text as a fallback" do - output = "Hello" - subject.detect_type(output).should be :text + ["Foo", "Foo bar", "The answer: foo", "The answer could be foo/bar"].each do |string| + it "detects '#{string}' as text" do + subject.detect_type(string).should be :text + end end end end end end