Sha256: 07380e383ea810894e7954eb936c5dac521259dd3ca07751aedc2fc37d6cc56e
Contents?: true
Size: 525 Bytes
Versions: 8
Compression:
Stored size: 525 Bytes
Contents
# -*- encoding : utf-8 -*- require 'spec_helper' describe OCRSDK::AbstractEntity do before do OCRSDK.setup do |config| config.application_id = 'meow' config.password = 'purr' end end it "should initialize and prepare url" do OCRSDK::AbstractEntity.new.instance_eval { @url }.to_s.should_not be_empty end it "should prepare url correctly" do OCRSDK::AbstractEntity.new.instance_eval { prepare_url 'meow!', "'pew'" }.to_s.should == "http://meow%21:%27pew%27@cloud.ocrsdk.com" end end
Version data entries
8 entries across 8 versions & 1 rubygems