Sha256: 2e75adf9a4f5529885d5bec6cfaf9337f2b693a50ff68f92bef2bcf88735edca
Contents?: true
Size: 558 Bytes
Versions: 7
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' module Spree describe Api::V1::AddressesController do render_views before do stub_authentication! @address = create(:address) end it "gets an address" do api_get :show, :id => @address.id json_response['address']['address1'].should eq @address.address1 end it "updates an address" do api_put :update, :id => @address.id, :address => { :address1 => "123 Test Lane" } json_response['address']['address1'].should eq '123 Test Lane' end end end
Version data entries
7 entries across 7 versions & 1 rubygems