Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
Really I should be mocking this, but I am lazy.
  • Loading branch information
jgorset committed Mar 13, 2015
1 parent 5a52625 commit 2b21e14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
Gitio::CLI.new ["https://github.com/jgorset/git.io"]
end

output.should eq "http://git.io/git.io\n"
output.should eq "http://git.io/Vhp6yw\n"
end

it "accepts an URL with a code" do
output = capture_stdout do
Gitio::CLI.new ["https://github.com/jgorset/git.io", "git.io"]
end

output.should eq "http://git.io/git.io\n"
output.should eq "http://git.io/Vhp6yw\n"
end

end
2 changes: 1 addition & 1 deletion spec/gitio_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

short_url = Gitio.shorten(original_url, "git.io")

short_url.should eq "http://git.io/git.io"
short_url.should eq "http://git.io/Vhp6yw"
end

it "should raise an exception upon trying to shorten an invalid URL" do
Expand Down

0 comments on commit 2b21e14

Please sign in to comment.