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
Add specs for ability to disable UI (closes #549) #607
Conversation
|
||
before { ENV['DISABLE_MARKETS_UI'] = nil } | ||
|
||
context 'when market UI enabled' 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.
@yssavchuk UI is enabled
.
before { ENV['DISABLE_MARKETS_UI'] = nil } | ||
|
||
context 'when market UI enabled' do | ||
it 'should return ok (200)' 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.
@yssavchuk It is better to use just code number 200 without message.
|
||
context 'when market UI disabled' do | ||
before { ENV['DISABLE_MARKETS_UI'] = 'true'} | ||
it 'should return no_content (204)' 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.
@yssavchuk should return HTTP 204
should be fine.
before { ENV['DISABLE_CABINET_UI'] = nil } | ||
|
||
context 'when cabinet UI enabled' do | ||
it 'should return ok (200)' 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.
@yssavchuk the same.
|
||
context 'when cabinet UI disabled' do | ||
before { ENV['DISABLE_CABINET_UI'] = 'true'} | ||
it 'should return no_content (204)' 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.
@yssavchuk the same.
9d8b013
to
7a03e77
Compare
No description provided.