-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactoring specs by “rubocop —auto-correct”
- Loading branch information
Showing
18 changed files
with
119,961 additions
and
294,502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe Miteru::CLI do | ||
subject { Miteru::CLI.new } | ||
subject { described_class.new } | ||
|
||
describe "#execute" do | ||
before do | ||
allow(Miteru::Feeds).to receive_message_chain(:new, :suspicious_urls).and_return(["http://#{host}:#{port}/has_kit"]) | ||
end | ||
|
||
it "should not raise any error" do | ||
capture(:stdout) { Miteru::CLI.start %w(execute) } | ||
it "does not raise any error" do | ||
capture(:stdout) { described_class.start %w(execute) } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
spec/fixtures/vcr_cassettes/Miteru_Feeds_Ayashige/_urls/returns_an_Array.yml
Large diffs are not rendered by default.
Oops, something went wrong.
116 changes: 0 additions & 116 deletions
116
spec/fixtures/vcr_cassettes/Miteru_Feeds_Ayashige/_urls/should_return_an_Array.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.