aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/api
diff options
context:
space:
mode:
authorRobert2017-07-17 15:34:33 +0200
committerRobert2017-07-19 08:40:03 +0200
commit0c69d141911a1f8e55c50d521691506ba7f32ac0 (patch)
treeff6f6586c6a24d0e4fc56683da3ab139178fdb0e /spec/models/api
parenteac2dc45fdf6c7dbaa413396ea513b1642b32c1c (diff)
downloadchouette-core-0c69d141911a1f8e55c50d521691506ba7f32ac0.tar.bz2
Refs: #3506@16h Request Spec for NetexImport API and implementation
- Carrier Wave Upload with `fixture_file_upload` - Request specs to .json - Implementation - API token setup - Refuted experiments with controller specs
Diffstat (limited to 'spec/models/api')
-rw-r--r--spec/models/api/v1/api_key_spec.rb2
-rw-r--r--spec/models/api/v1/netex_import_spec.rb15
2 files changed, 0 insertions, 17 deletions
diff --git a/spec/models/api/v1/api_key_spec.rb b/spec/models/api/v1/api_key_spec.rb
index eb8826c0e..8a34c9221 100644
--- a/spec/models/api/v1/api_key_spec.rb
+++ b/spec/models/api/v1/api_key_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe Api::V1::ApiKey, :type => :model do
let!(:referential){create(:referential)}
subject { Api::V1::ApiKey.create( :name => "test", :referential => referential)}
diff --git a/spec/models/api/v1/netex_import_spec.rb b/spec/models/api/v1/netex_import_spec.rb
deleted file mode 100644
index f1fddc4ba..000000000
--- a/spec/models/api/v1/netex_import_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-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