Sha256: ec73c80ad794768ffdf440ed19ada5a6a0087ac96625f9cd5311371a6b4d0db2
Contents?: true
Size: 742 Bytes
Versions: 27
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' describe RestModel::Configuration do after(:all) do RestModel::Configuration.convert_input_keys = nil end context "when no custom input keys converter is set" do it "returns default key converter" do default_handler = RestModel::Configuration::DefaultHandler RestModel::Configuration.convert_input_keys.should == default_handler end end context "when a custom input keys converter is set" do let(:custom_convert_input_keys) {lambda {|keys| keys}} before {RestModel::Configuration.convert_input_keys = custom_convert_input_keys} it "returns custom key converter" do RestModel::Configuration.convert_input_keys.should == custom_convert_input_keys end end end
Version data entries
27 entries across 27 versions & 1 rubygems