Created
December 12, 2018 04:58
-
-
Save marzdgzmn/47f733d18bb8da5feac2c5db89f200ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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