Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created December 12, 2018 04:58
Show Gist options
  • Save marzdgzmn/47f733d18bb8da5feac2c5db89f200ea to your computer and use it in GitHub Desktop.
Save marzdgzmn/47f733d18bb8da5feac2c5db89f200ea to your computer and use it in GitHub Desktop.
RSpec.describe Foo::Bar do
obj = OpenStruct.new(name: 'dummy', ops: '-l -a', post_cmd: true)
it 'should run test 1' do
#test
# will fail if post_cmd is false
end
it 'should run test 2' do
#test
end
context 'obj with post_cmd attribute as false' do
obj.post_cmd = 'false'
it 'should run test 3' do
#test
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment