2019-03-07 18:52:03 +00:00
|
|
|
# This should simply not error
|
2019-05-01 03:46:20 +00:00
|
|
|
unless input('test-01', value: 'test-01') == 'test-01'
|
2019-03-07 18:52:03 +00:00
|
|
|
raise 'Failed bare input access'
|
|
|
|
end
|
|
|
|
|
2019-05-01 03:46:20 +00:00
|
|
|
describe input('test-02', value: 'test-02') do
|
2019-03-07 18:52:03 +00:00
|
|
|
it { should cmp 'test-02' }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'mentioning an input in a bare describe block as a redirected subject' do
|
2019-05-01 03:46:20 +00:00
|
|
|
subject { input('test-03', value: 'test-03') }
|
2019-03-07 18:52:03 +00:00
|
|
|
it { should cmp 'test-03' }
|
|
|
|
end
|
|
|
|
|
|
|
|
control 'test using an input inside a control block as the describe subject' do
|
2019-05-01 03:46:20 +00:00
|
|
|
describe input('test-04', value: 'test-04') do
|
2019-03-07 18:52:03 +00:00
|
|
|
it { should cmp 'test-04' }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
control "test using inputs in the test its block" do
|
|
|
|
describe 'test-05' do
|
2019-05-01 03:46:20 +00:00
|
|
|
it { should cmp input('test-05', value: 'test-05') }
|
2019-03-07 18:52:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# TODO: add test for OR
|