Sha256: 56c24900afaa0287c5bc9bdc8dfcf811f1290d17afb0a86b6c5ecb3eafc0d10b
Contents?: true
Size: 767 Bytes
Versions: 21
Compression:
Stored size: 767 Bytes
Contents
require 'spec_helper' module Spree describe Api::ConfigController, :type => :controller do render_views before do stub_authentication! end it "returns Spree::Money settings" do api_get :money expect(response).to be_success expect(json_response["symbol"]).to eq("$") expect(json_response["symbol_position"]).to eq("before") expect(json_response["no_cents"]).to eq(false) expect(json_response["decimal_mark"]).to eq(".") expect(json_response["thousands_separator"]).to eq(",") end it "returns some configuration settings" do api_get :show expect(response).to be_success expect(json_response["default_country_id"]).to eq(Spree::Config[:default_country_id]) end end end
Version data entries
21 entries across 21 versions & 1 rubygems