Sha256: 1f2ea9754b2f057c1ff292ff0c86e1d28ae3bedb48770cf9c200cb16c42e6798
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
require 'ostruct' # @author Jonah Ruiz <jonah@pixelhipsters.com> # Shared examples used in specs shared_context 'shared_examples' do # Helper method for loading fixtures def fixture(file) file_path = File.join(File.dirname(__FILE__), 'fixtures', "#{file}") File.open(file_path).read end let(:link_shrink) { described_class } let(:url) { 'http://www.google.com' } let(:short_url) { "http://goo.gl/fbsS" } let(:json_response) { fixture('response.json') } let(:parsed_json) { { "kind" => "urlshortener#url", "id" => "http://goo.gl/fbsS", "longUrl" => "http://www.google.com/" } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
link_shrink-0.0.8 | spec/shared_examples.rb |
link_shrink-0.0.7 | spec/shared_examples.rb |