Sha256: 6afb782915aaaa9f703fd8f6afd268aa129290a06a276a1ce74d34d5a8268127

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

describe :articles do
  
  describe "GET /articles.json" do
    before do
      @json = read_fixture :articles
      @response = get :articles
    end
    it "should return articles.json fixture" do
      @response.body.should eq @json
    end
  end
  
  describe "GET /articles/count.json" do
    before do
      @json = read_fixture :count
      @response = get [:articles, :count]
    end
    it "should return count json" do
      @response.body.should eq @json
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shopify-mock-0.0.1 spec/mockify/responses/articles_spec.rb