Sha256: 69e458c7dce11771278a3eb8f99e000309942940a9f58edefb8b33663822fe11
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
require 'spec_helper' describe "Rake Task gmail_cli:" do require 'rake' require 'gmail_cli/tasks' describe "authorize" do let(:task_name) { "gmail_cli:authorize" } let :run_rake_task do Rake::Task[task_name].reenable Rake.application.invoke_task task_name end it "runs successfully" do expect_any_instance_of(GmailCli::Oauth2Helper).to receive(:authorize!).and_return(nil) expect { run_rake_task }.to_not raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gmail_cli-0.1.0 | spec/unit/tasks_spec.rb |