Skip to content

Commit

Permalink
Merge pull request #6416 from jrafanie/use_a_new_error
Browse files Browse the repository at this point in the history
Try to create a dashboard without needed fields
  • Loading branch information
himdel authored Nov 14, 2019
2 parents 467805e + 296e287 commit 51958e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/miq_report_controller/dashboards_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
end

it "saves unsuccessfully and returns error message" do
params = {:button => "save", :dashboard_id => miq_widget_set.id.to_s, :group_id => user.current_group.id.to_s, :name => miq_widget_set.name.to_s, :description => 'New description'}
params = {:button => "save", :dashboard_id => miq_widget_set.id.to_s, :group_id => user.current_group.id.to_s}
post :db_copy, :params => params

expect(JSON.parse(response.body)["error"]["message"]).to include("Error")
Expand Down

0 comments on commit 51958e5

Please sign in to comment.