Skip to content

Commit

Permalink
Merge 6be1def into af5ab30
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Mar 27, 2019
2 parents af5ab30 + 6be1def commit 2304099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/kokki/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CLI
def self.start(input)
if input
begin
puts Kokki.flagize(input.chomp)
print Kokki.flagize(input.chomp)
rescue Kokki::InvalidInputError => e
puts e.message
end
Expand Down
2 changes: 1 addition & 1 deletion spec/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
describe ".start" do
context "when given a valid input" do
it "should return a country flag of a given country" do
output = capture(:stdout) { subject.start "JP" }.chomp
output = capture(:stdout) { subject.start "JP" }
expect(output).to eq("🇯🇵")
end
end
Expand Down

0 comments on commit 2304099

Please sign in to comment.