Sha256: f13dec8db9c4fe9270ba67e4f724a4241f402e53f3bee3ad7700091ae14de896
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
require "spec_helper" describe Onebox::Engine::JSON do before(:all) do @link = "http://gist.github.com" fake(@link, response("githubgist")) end before(:each) { Onebox.defaults.cache.clear } let(:link) { @link } describe "#raw" do class OneboxEngineJSON include Onebox::Engine include Onebox::Engine::JSON def initialize(link) @url = link end end it "returns a hash" do object = OneboxEngineJSON.new("http://gist.github.com").send(:raw) expect(object).to be_a(Hash) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/json_spec.rb |