Sha256: 2d2531369a98f685279af0f008b6f1e2a8b336df2da74165639bb535cb4a9456
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe MailUp::Console::User do before(:each) { init_mailup } %w(emails lists).each do |method| it "should have a #{method} method" do @mailup.console.user.should respond_to(method.to_sym) end it "should fire the correct GET request for #{method}" do @mailup.console.user.api.should_receive(:get).with("#{@mailup.console.user.api.path}/User/#{method.capitalize}", {params: {}}) @mailup.console.user.send(method.to_sym) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailup-1.2.0 | spec/mailup/console/user_spec.rb |
mailup-1.1.0 | spec/mailup/console/user_spec.rb |