Sha256: edf573e984e757d0674281fd133571730bbc939bab8cf61af222cb10d94cedbb

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'
require 'lib/auto_generate_test_class'

# uses the auto generation test class as interface

describe AutoGenerateTestClass do
  it "should not modify @api_path" do
    HTTParty.stub(:get) { double(:body => %q({ "id" : "1", "name": "test" })) }
    
    real = AutoGenerateTestClass.api_path.dup
    
    AutoGenerateTestClass.where(:id => 1).execute
    
    AutoGenerateTestClass.api_path.should == real
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api-query-provider-0.0.1 spec/provider_spec.rb