forked from openshift/rhc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace expect{}.should with expect{}.to in remaining spots, depend o…
…n webmock 1.8
- Loading branch information
1 parent
37a104d
commit 20b6034
Showing
9 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,14 +24,14 @@ | |
|
||
context 'when no issues' do | ||
it "should exit 0" do | ||
expect { run }.should exit_with_code(0) | ||
expect { run }.to exit_with_code(0) | ||
end | ||
end | ||
|
||
context 'when there is an issue' do | ||
it "should exit 1" do | ||
@wizard.stub!(:run).and_return(false) | ||
expect { run }.should exit_with_code(1) | ||
expect { run }.to exit_with_code(1) | ||
end | ||
end | ||
end | ||
|
@@ -72,7 +72,7 @@ | |
let(:input) { ['', 'y', '', ''] } | ||
let!(:rest_client){ MockRestClient.new } | ||
|
||
it("succeeds"){ FakeFS{ expect { run input }.should exit_with_code 0 } } | ||
it("succeeds"){ FakeFS{ expect { run input }.to exit_with_code 0 } } | ||
it("the output includes debug output") do | ||
FakeFS{ run_output( input ).should match 'DEBUG' } | ||
end | ||
|
@@ -84,7 +84,7 @@ | |
let(:input) { ['', 'y', '', ''] } | ||
let!(:rest_client){ MockRestClient.new } | ||
|
||
it("succeeds"){ FakeFS{ expect { run input }.should exit_with_code 0 } } | ||
it("succeeds"){ FakeFS{ expect { run input }.to exit_with_code 0 } } | ||
it("sets the user name to the value given by the command line") do | ||
FakeFS{ run_output( input ).should match '[email protected]' } | ||
end | ||
|
@@ -96,7 +96,7 @@ | |
context 'help is run' do | ||
it "should display help" do | ||
@wizard.stub!(:run).and_return(true) | ||
expect { run }.should exit_with_code(0) | ||
expect { run }.to exit_with_code(0) | ||
end | ||
it('should output usage') { run_output.should match("Connects to an OpenShift server to get you started. Will") } | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters