spec/support/html_spec_helper.rb in onebox-1.1.0 vs spec/support/html_spec_helper.rb in onebox-1.2.0

- old
+ new

@@ -10,8 +10,9 @@ def onebox_view(html) %|<div class="onebox">#{html}</div>| end def response(file) - File.read(File.join("spec", "fixtures", "#{file}.response")) + file = File.join("spec", "fixtures", "#{file}.response") + File.exists?(file) ? File.read(file) : "" end end