spec/mailup/console/import_spec.rb in mailup-1.1.0 vs spec/mailup/console/import_spec.rb in mailup-1.2.0

- old
+ new

@@ -1,17 +1,23 @@ require 'spec_helper' describe MailUp::Console::Import do before(:each) { init_mailup } - %w(status).each do |method| + %w(status confirmation_email_id).each do |method| it "should have a #{method} method" do @mailup.console.import(1).should respond_to(method.to_sym) end end it "should fire the correct GET request for status" do id = rand(100).abs @mailup.console.import(id).api.should_receive(:get).with("#{@mailup.console.import(id).api.path}/Import/#{id}") @mailup.console.import(id).status + end + + it "should fire the correct GET request for confirmation_email_id" do + id = rand(100).abs + @mailup.console.import(id).api.should_receive(:get).with("#{@mailup.console.import(id).api.path}/Import/#{id}/Sending") + @mailup.console.import(id).confirmation_email_id end end \ No newline at end of file