2017-11-06 18:28:53 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[0]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('should raise ResourceSkipped', :skip_me) do
|
|
|
|
its('value') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[1]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('should raise ResourceFailed', :fail_me) do
|
|
|
|
its('value') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[2]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('should pass') do
|
|
|
|
its('value') { should eq 'should pass' }
|
|
|
|
end
|
|
|
|
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[3]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('fail inside matcher') do
|
|
|
|
its('inside_matcher') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[4]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('skip inside matcher') do
|
|
|
|
its('inside_matcher') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
control 'should-work-within-control' do
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[5][0]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('should skip', :skip_me) do
|
|
|
|
its('value') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
2017-11-29 12:32:40 +00:00
|
|
|
# checks[5][1]
|
2017-11-06 18:28:53 +00:00
|
|
|
describe exception_resource_test('should fail', :fail_me) do
|
|
|
|
its('value') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
end
|
2017-11-29 12:32:40 +00:00
|
|
|
|
|
|
|
# checks[6]
|
|
|
|
describe exception_resource_test('skip_me').matters('does not matter') do
|
|
|
|
its('matters') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
# checks[7]
|
|
|
|
describe exception_resource_test('fail_me').matters('does not matter') do
|
|
|
|
its('matters') { should eq 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
# checks[8]
|
|
|
|
describe exception_resource_test('skip_me').matters('it really does').another_filter('example') do
|
|
|
|
its('value') { should cmp 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
# checks[9]
|
|
|
|
describe exception_resource_test('fail_me').matters('it really does').another_filter('example') do
|
|
|
|
its('value') { should cmp 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
# checks[10]
|
|
|
|
describe exception_resource_test('skip_me').matters('it really does').not_real_filter('example') do
|
|
|
|
its('value') { should cmp 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
# checks[11]
|
|
|
|
describe exception_resource_test('fail_me').matters('it really does').not_real_filter('example') do
|
|
|
|
its('value') { should cmp 'does not matter' }
|
|
|
|
end
|
|
|
|
|
|
|
|
# checks[12]
|
|
|
|
describe exception_resource_test('should_pass').matters('it really does') do
|
|
|
|
its('another_filter') { should cmp 'example' }
|
|
|
|
end
|
|
|
|
|