-
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.
- Loading branch information
1 parent
f35ad6b
commit c6c6fac
Showing
3 changed files
with
6 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--color | ||
--require spec_helper | ||
--format documentation | ||
--format documentation | ||
--fail-fast |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
describe "Hello World" do | ||
it 'has a file hello_world.rb' do | ||
expect(File.exists?("hello_world.rb")).to be_truthy, "Did you create the file hello_world.rb?" | ||
end | ||
|
||
it 'puts "Hello World!"' do | ||
# $stdout represents the output of your program, don't worry about how | ||
# we are testing this, focus on simply coding your solution. | ||
expect($stdout).to receive(:puts).with("Hello World!") | ||
load './hello_world.rb' | ||
end | ||
|
||
end |