Skip to content

Commit

Permalink
Improve System.hostname spec, related to #2847
Browse files Browse the repository at this point in the history
jhass committed Jun 16, 2016

Verified

This commit was signed with the committer’s verified signature.
jhass Jonne Haß
1 parent b1bbefc commit 6bd231e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/std/system_spec.cr
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ describe System do
describe "hostname" do
it "returns current hostname" do
shell_hostname = `hostname`.strip
$?.success?.should be_true # The hostname command has to be available
hostname = System.hostname
hostname.should eq(shell_hostname)
end

0 comments on commit 6bd231e

Please sign in to comment.