Sha256: affea5c48fa751e51a3c41b39a245e22fc710a6dcdd6da32444873fc681c9341
Contents?: true
Size: 730 Bytes
Versions: 1
Compression:
Stored size: 730 Bytes
Contents
require "spec_helper" describe FastshopCatalog::BaseService do describe "camelize" do it 'should convert the underscore string to camel' do expect(FastshopCatalog::BaseService.camelize('some_dull_text')).to eq('SomeDullText') end end describe "initialization" do let(:service) do class TempService < FastshopCatalog::BaseService def initialize @service = :catalogo @interface = 'ISomeInterface' @soap_method = :some_method @return_key = 'SomeName' super end end TempService.new end it 'should return the correct action' do expect(service.action).to eq('ISomeInterface/SomeMethod') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastshop_catalog-0.0.8 | spec/fastshop_catalog/base_service_spec.rb |