spec/edge_cases_spec.rb in PageRankr-2.0.1 vs spec/edge_cases_spec.rb in PageRankr-2.0.2
- old
+ new
@@ -7,10 +7,14 @@
#
# For example, slocourts.net returns results for ca.gov, presumably because www.slocourts.ca.gov redirects
# to slocourts.net. Clearly something is wrong with how Alexa handles this case and so in the event this
# happens we treat the results as if there were no results.
describe "when Alexa returns results for the incorrect site" do
- subject{ PageRankr.ranks("slocourts.net", :alexa_us, :alexa_global) }
+ subject do
+ VCR.use_cassette(:alexa_ranks_edge_case_1) do
+ PageRankr.ranks("slocourts.net", :alexa_us, :alexa_global)
+ end
+ end
it{ should have_key(:alexa_us) }
it{ should have_key(:alexa_global) }
it{ subject[:alexa_us].should be_nil }
\ No newline at end of file