Merge pull request #409 from olleolleolle/specs/avoid-a-warning-by-using-stub-const
Spec: avoid Ruby warning about already-defined constant
This commit is contained in:
commit
d4140f05c9
|
@ -63,9 +63,10 @@ describe GitHubChangelogGenerator::Parser do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
describe ".fetch_user_and_project" do
|
describe ".fetch_user_and_project" do
|
||||||
before :each do
|
before do
|
||||||
ARGV = ["https://github.com/skywinder/github-changelog-generator"]
|
stub_const("ARGV", ["https://github.com/skywinder/github-changelog-generator"])
|
||||||
end
|
end
|
||||||
|
|
||||||
context do
|
context do
|
||||||
let(:valid_user) { "initialized_user" }
|
let(:valid_user) { "initialized_user" }
|
||||||
let(:options) { { user: valid_user } }
|
let(:options) { { user: valid_user } }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user