spec/support/html_spec_helper.rb in onebox-1.0.1 vs spec/support/html_spec_helper.rb in onebox-1.1.0
- old
+ new
@@ -10,8 +10,8 @@
def onebox_view(html)
%|<div class="onebox">#{html}</div>|
end
def response(file)
- Nokogiri::HTML(File.read(File.join("spec", "fixtures", file)))
+ File.read(File.join("spec", "fixtures", "#{file}.response"))
end
end