spec/bin_spec.rb in git-browse-remote-0.1.1 vs spec/bin_spec.rb in git-browse-remote-0.2.0
- old
+ new
@@ -293,9 +293,15 @@
it 'should open the revision page of current HEAD' do
expect(opened_url).to eq("https://github.com/user/repo/commit/#{@sha1[:'branch-1']}")
end
end
+ when_run_with_args '--pr' do
+ it 'should open the pull request page' do
+ expect(opened_url).to eq("https://github.com/user/repo/pull/branch-1")
+ end
+ end
+
when_run_with_args 'README.md' do
it 'should open the file page at current branch' do
expect(opened_url).to eq("https://github.com/user/repo/blob/branch-1/README.md")
end
end