|
1 | 1 | RSpec.describe "Relaton fetch-data" do |
2 | | - it "send fetch-data message to DataFetcher" do |
3 | | - Relaton::Registry.instance |
4 | | - expect(RelatonNist::DataFetcher).to receive(:fetch) |
5 | | - .with output: "dir", format: "xml" |
| 2 | + it "send fetch_data message to proceessor" do |
| 3 | + processor = Relaton::Registry.instance.find_processor_by_dataset "nist-tech-pubs" |
| 4 | + expect(processor).to receive(:fetch_data).with("nist-tech-pubs", { output: "dir", format: "xml" }) |
6 | 5 | command = %w[fetch-data nist-tech-pubs -o dir -f xml] |
7 | 6 | Relaton::Cli.start command |
8 | 7 | end |
9 | 8 |
|
10 | | - it "send cie-techstreet message to DataFetcher" do |
11 | | - Relaton::Registry.instance |
12 | | - expect(RelatonCie::DataFetcher).to receive(:fetch) |
13 | | - .with output: "dir", format: "xml" |
14 | | - command = %w[fetch-data cie-techstreet -o dir -f xml] |
15 | | - Relaton::Cli.start command |
16 | | - end |
| 9 | + # it "send cie-techstreet message to DataFetcher" do |
| 10 | + # processor = Relaton::Registry.instance.find_processor_by_dataset "cie-techstreet" |
| 11 | + # expect(processor).to receive(:fetch_data).with("cie-techstreet", { output: "dir", format: "xml" }) |
| 12 | + # command = %w[fetch-data cie-techstreet -o dir -f xml] |
| 13 | + # Relaton::Cli.start command |
| 14 | + # end |
17 | 15 |
|
18 | | - it "send calconnect-org message to DataFetcher" do |
19 | | - Relaton::Registry.instance |
20 | | - expect(RelatonCalconnect::DataFetcher).to receive(:fetch) |
21 | | - .with output: "dir", format: "xml" |
22 | | - command = %w[fetch-data calconnect-org -o dir -f xml] |
23 | | - Relaton::Cli.start command |
24 | | - end |
| 16 | + # it "send calconnect-org message to DataFetcher" do |
| 17 | + # Relaton::Registry.instance |
| 18 | + # expect(RelatonCalconnect::DataFetcher).to receive(:fetch) |
| 19 | + # .with output: "dir", format: "xml" |
| 20 | + # command = %w[fetch-data calconnect-org -o dir -f xml] |
| 21 | + # Relaton::Cli.start command |
| 22 | + # end |
25 | 23 | end |
0 commit comments