-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Towards provider plugins: dialog definition action #4377
Conversation
allow(controller).to receive(:check_privileges).and_return(true) | ||
end | ||
|
||
let(:klass) { 'sorryjako' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my.
end | ||
|
||
let(:klass) { 'sorryjako' } | ||
let(:name) { 'kalousek' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh boy!
|
||
context 'existing dialog' do | ||
it 'returns json with data' do | ||
data = 'je to kampaň!' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
end | ||
|
||
context 'directory traversal' do | ||
it 'ignores anything but [a-z_]'do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing whitespace before do
7eb0988
to
9e178e6
Compare
@@ -421,6 +421,77 @@ | |||
end | |||
end | |||
|
|||
context '#dialog_definition' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe
end | ||
end | ||
|
||
context 'private #load_dialog_definition' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
describe
and you don't need the private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "private" is part of the description, surely I don't >>need<< it. But I want it.
let (:name) { 'existing_dialog' } | ||
let (:dialog_path) { Pathname.new("/dialogs/#{name}.json") } | ||
|
||
before(:each) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each
is redundant
@@ -421,6 +421,77 @@ | |||
end | |||
end | |||
|
|||
context '#dialog_definition' do | |||
before(:each) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each
is redundant
9e178e6
to
33fc5e1
Compare
Some comments on commits martinpovolny/manageiq-ui-classic@1a1ee31~...33fc5e1 spec/controllers/dashboard_controller_spec.rb
|
Checked commits martinpovolny/manageiq-ui-classic@1a1ee31~...33fc5e1 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 spec/controllers/dashboard_controller_spec.rb
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase version of react-ui-components (needed for demo).
Implement
/dashboars/dialog_definition
with tests.Extracted from #4315 with added specs.