Sha256: c1e874dd98add5aa365b070ebb668eb8e6e4d8b5a94fc2645cd3c6f638175b04
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
require 'spec_helper' describe :response do describe "all registered responses" do ShopifyAPI::Mock::Fixtures.all.each do |fixture| describe "##{fixture}" do describe "GET /#{fixture}.json" do before do @json = read_fixture fixture @response = get fixture end it "should return #{fixture.to_s}.json fixture" do @response.body.should eq @json end end describe "GET /#{fixture}/count.json" do before do @json = read_fixture :count @response = get [fixture, :count] end it "should return count json" do @response.body.should eq @json end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify-mock-0.0.3 | spec/response_spec.rb |
shopify-mock-0.0.2 | spec/response_spec.rb |