-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ninoseki/refactoring-specs
refactoring: refactoring specs
- Loading branch information
Showing
24 changed files
with
237 additions
and
8,057 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
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
Binary file not shown.
167 changes: 167 additions & 0 deletions
167
spec/fixtures/vcr_cassettes/Ayashige_Sources_CT/_records/returns_an_Array_of_records.yml
Large diffs are not rendered by default.
Oops, something went wrong.
167 changes: 0 additions & 167 deletions
167
...fixtures/vcr_cassettes/Ayashige_Sources_CT/_records/should_return_an_Array_of_records.yml
This file was deleted.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
..._CT_log_entries_which_have_x509_entry.yml → ..._CT_log_entries_which_have_x509_entry.yml
Large diffs are not rendered by default.
Oops, something went wrong.
873 changes: 0 additions & 873 deletions
873
...Sources_DomainWatch/_get_records_from_doc/should_return_domains_in_a_page_as_an_Array.yml
This file was deleted.
Oops, something went wrong.
1,741 changes: 0 additions & 1,741 deletions
1,741
...ige_Sources_WebAnalyzer/_get_links_from_doc/should_return_links_in_a_page_as_an_Array.yml
This file was deleted.
Oops, something went wrong.
1,741 changes: 0 additions & 1,741 deletions
1,741
...Sources_WebAnalyzer/_get_records_from_doc/should_return_domains_in_a_page_as_an_Array.yml
This file was deleted.
Oops, something went wrong.
1,180 changes: 0 additions & 1,180 deletions
1,180
...es_WebAnalyzer/_latest_indexed_date/should_return_the_latest_indexed_date_as_a_String.yml
This file was deleted.
Oops, something went wrong.
714 changes: 0 additions & 714 deletions
714
...ources_WhoisDS/_latest_indexed_date/should_return_the_latest_indexed_date_as_a_String.yml
This file was deleted.
Oops, something went wrong.
714 changes: 0 additions & 714 deletions
714
...WhoisDS/_latest_zip_file_link/should_return_a_link_of_the_latest_zip_file_as_a_String.yml
This file was deleted.
Oops, something went wrong.
714 changes: 0 additions & 714 deletions
714
...urces_WhoisDS/_latest_zip_file_link/should_return_the_latest_indexed_date_as_a_String.yml
This file was deleted.
Oops, something went wrong.
113 changes: 0 additions & 113 deletions
113
...ources_WhoisDS/_store_newly_registered_domains/should_store_parsed_domains_into_Redis.yml
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
...hige_Sources_WhoisDS/_store_newly_registered_domains/stores_parsed_domains_into_Redis.yml
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.shared_context "source context", shared_context: :metadata do | ||
let(:redis) { MockRedis.new } | ||
|
||
before do | ||
allow(Ayashige::Redis).to receive(:client).and_return(redis) | ||
allow(Parallel).to receive(:processor_count).and_return(0) | ||
end | ||
|
||
after do | ||
redis.flushdb | ||
end | ||
end |