aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/exports_controller_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/controllers/exports_controller_spec.rb b/spec/controllers/exports_controller_spec.rb
index dbc8b3f35..3a67497ec 100644
--- a/spec/controllers/exports_controller_spec.rb
+++ b/spec/controllers/exports_controller_spec.rb
@@ -27,7 +27,9 @@ RSpec.describe ExportsController, :type => :controller do
context "with full params" do
let(:params){{
name: "foo",
- type: "Export::Netex"
+ type: "Export::Netex",
+ duration: 12,
+ export_type: :line
}}
it 'should be successful' do
@@ -45,7 +47,7 @@ RSpec.describe ExportsController, :type => :controller do
context "with missing options" do
let(:params){{
name: "foo",
- type: "Export::Workbench"
+ type: "Export::Workgroup"
}}
it 'should be unsuccessful' do
@@ -56,8 +58,8 @@ RSpec.describe ExportsController, :type => :controller do
context "with all options" do
let(:params){{
name: "foo",
- type: "Export::Workbench",
- timelapse: 90
+ type: "Export::Workgroup",
+ duration: 90
}}
it 'should be successful' do