Commit 451a526d authored by Eloy Durán's avatar Eloy Durán

Ensure the install command test works by having a clean env.

parent f689cda8
...@@ -2,6 +2,8 @@ require File.expand_path('../../../spec_helper', __FILE__) ...@@ -2,6 +2,8 @@ require File.expand_path('../../../spec_helper', __FILE__)
module Pod module Pod
describe Command::Install do describe Command::Install do
extend SpecHelper::TemporaryDirectory
it "tells the user that no Podfile or podspec was found in the current working dir" do it "tells the user that no Podfile or podspec was found in the current working dir" do
exception = lambda { run_command('install', '--no-update') }.should.raise Informative exception = lambda { run_command('install', '--no-update') }.should.raise Informative
exception.message.should.include "No `Podfile' found in the current working directory." exception.message.should.include "No `Podfile' found in the current working directory."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment