diff options
author | ubudzisz <ubudzisz@gmail.com> | 2016-08-30 17:37:49 +0200 |
---|---|---|
committer | ubudzisz <ubudzisz@gmail.com> | 2016-09-06 14:42:43 +0200 |
commit | 691644dc5be544af0b0793353ab7f151136f1198 (patch) | |
tree | db237aa9720e95b4fcd0d5ade0d9b994a3deee38 /spec/views | |
parent | 0893911d62520822bbf1578783e76351b7cfaa37 (diff) | |
download | gitlab-ce-691644dc5be544af0b0793353ab7f151136f1198.tar.gz |
add feature test
add feature test
add feature test
add feature test
remove test to builds_spec
remove feature test to builds_spec
remove feature test to builds_spec
add changes to methods and remove FactoryGirl
add changes to methods and remove FactoryGirl
adding changes to test and js file
changes grammar
update changelog
rename file name
update files after review
update files after review
update files after review
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/builds/show.html.haml_spec.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/spec/views/projects/builds/show.html.haml_spec.rb b/spec/views/projects/builds/show.html.haml_spec.rb index 1dc2048e1bc..446ba3bfa14 100644 --- a/spec/views/projects/builds/show.html.haml_spec.rb +++ b/spec/views/projects/builds/show.html.haml_spec.rb @@ -59,20 +59,10 @@ describe 'projects/builds/show' do end it 'shows trigger variables in separate lines' do - expect(rendered).to have_css('.js-build-variable', visible: false, text: variable_regexp_key('TRIGGER_KEY_1')) - expect(rendered).to have_css('.js-build-variable', visible: false, text: variable_regexp_key('TRIGGER_KEY_2')) - expect(rendered).to have_css('.js-build-value', visible: false, text: variable_regexp_value('TRIGGER_VALUE_1')) - expect(rendered).to have_css('.js-build-value', visible: false, text: variable_regexp_value('TRIGGER_VALUE_2')) + expect(rendered).to have_css('.js-build-variable', visible: false, text: 'TRIGGER_KEY_1') + expect(rendered).to have_css('.js-build-variable', visible: false, text: 'TRIGGER_KEY_2') + expect(rendered).to have_css('.js-build-value', visible: false, text: 'TRIGGER_VALUE_1') + expect(rendered).to have_css('.js-build-value', visible: false, text: 'TRIGGER_VALUE_2') end end - - private - - def variable_regexp_key(key) - /\A#{Regexp.escape("#{key}")}\Z/ - end - - def variable_regexp_value(value) - /\A#{Regexp.escape("#{value}")}\Z/ - end end |