Skip to content
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

Merged
merged 1 commit into from Mar 2, 2018

Conversation

ysv
Copy link

@ysv ysv commented Feb 27, 2018

No description provided.


before { ENV['DISABLE_MARKETS_UI'] = nil }

context 'when market UI enabled' do
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yssavchuk the same.

@yivo yivo changed the title Add specs for ability to disable UI (closes #549) [WIP] Add specs for ability to disable UI (closes #549) Feb 27, 2018
@ysv ysv changed the title [WIP] Add specs for ability to disable UI (closes #549) \Add specs for ability to disable UI (closes #549) Feb 27, 2018
@ysv ysv changed the title \Add specs for ability to disable UI (closes #549) Add specs for ability to disable UI (closes #549) Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants