spec/lib/onebox/matcher_spec.rb in onebox-1.5.3 vs spec/lib/onebox/matcher_spec.rb in onebox-1.5.5
- old
+ new
@@ -37,7 +37,18 @@
it "it finds an engine" do
matcher.stubs(:ordered_engines).returns([TestEngine])
matcher.oneboxed.should_not be_nil
end
end
+
+ describe "without a path but has a fragment string" do
+ let(:url) { "http://party.time.made.up-url.com/#article_id=1234" }
+ let(:matcher) { Onebox::Matcher.new(url) }
+
+ it "it finds an engine" do
+ matcher.stubs(:ordered_engines).returns([TestEngine])
+ matcher.oneboxed.should_not be_nil
+ end
+ end
+
end
end