diff options
| author | Robert | 2017-07-17 12:11:43 +0200 | 
|---|---|---|
| committer | Robert | 2017-07-17 13:13:29 +0200 | 
| commit | 4f4d43779ed3f9e6d1752dbe00d698bcc1a04966 (patch) | |
| tree | e53010bc5236edc31a958e25c3773abc3f992cfb /spec/models/api | |
| parent | 03c2dcba29f1d6b4a8d22bd091e036fcf5600924 (diff) | |
| download | chouette-core-4f4d43779ed3f9e6d1752dbe00d698bcc1a04966.tar.bz2 | |
Refs: #3506@1.5h sketching out specs [amend me]
Diffstat (limited to 'spec/models/api')
| -rw-r--r-- | spec/models/api/v1/netex_import_spec.rb | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/spec/models/api/v1/netex_import_spec.rb b/spec/models/api/v1/netex_import_spec.rb new file mode 100644 index 000000000..f1fddc4ba --- /dev/null +++ b/spec/models/api/v1/netex_import_spec.rb @@ -0,0 +1,15 @@ +RSpec.describe Api::V1::NetexImportController, type: :controller do + +  context 'POST create' do + +    let( :netex_import ){ build_stubbed(:netex_import) } + +    it 'creates a NetexImport record' do +      expect_any_instance_of( ImportController ).to receive(:create).with( +        params: netex_import.attributes +      ) +       +    end +  end + +end | 
