Sha256: 94a02dbb7267defca65b990ba203a8dceab2f5ce6721e31fd8e995ee78d1615c
Contents?: true
Size: 707 Bytes
Versions: 35
Compression:
Stored size: 707 Bytes
Contents
require 'spec_helper' module Spree describe Api::ConfigController do render_views before do stub_authentication! end it "returns Spree::Money settings" do api_get :money response.should be_success json_response["symbol"].should == "$" json_response["symbol_position"].should == "before" json_response["no_cents"].should == false json_response["decimal_mark"].should == "." json_response["thousands_separator"].should == "," end it "returns some configuration settings" do api_get :show response.should be_success json_response["default_country_id"].should == Spree::Config[:default_country_id] end end end
Version data entries
35 entries across 35 versions & 1 rubygems