spec/engineyard/cli/api_spec.rb in engineyard-2.0.9 vs spec/engineyard/cli/api_spec.rb in engineyard-2.0.10
- old
+ new
@@ -27,10 +27,12 @@
EY::CLI::UI::Prompter.enable_mock!
EY::CLI::UI::Prompter.add_answer "my@email.example.com"
EY::CLI::UI::Prompter.add_answer "secret"
- @api = EY::CLI::API.new('http://fake.local', EY::CLI::UI.new)
+ capture_stdout do
+ @api = EY::CLI::API.new('http://fake.local', EY::CLI::UI.new)
+ end
end
it "asks you for your credentials" do
EY::CLI::UI::Prompter.questions.should == ["Email: ","Password: "]
end