Sha256: ebcd85764c7d742d669e45d1f62808541b4e1c96d19f46449d2dd7ac8ebc96e4
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
require 'spec_helper' describe MailUp::Public do before(:each){ init_mailup } it 'should return a public base object' do @mailup.public.should be_an_instance_of(MailUp::Public::Base) end it 'should have the correct API path' do @mailup.public.api.path.should eq("/API/v#{MailUp::API_VERSION}/Rest/PublicService.svc") end %w(console).each do |resource| context resource do it "should return a #{resource} object" do test = @mailup.public.send(resource.to_sym) test.should be_an_instance_of(Object.const_get("MailUp").const_get("Public").const_get("#{resource.capitalize}")) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailup-1.2.0 | spec/mailup/public/base_spec.rb |