Last active
August 29, 2015 14:04
-
-
Save myronmarston/bbbacda52fd00e0e6522 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
bin | |
bundle | |
.bundle |
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
class Example | |
def self.doecho | |
`sudo echo 1` | |
end | |
end | |
RSpec.describe "Issue 1639" do | |
it '#doecho' do | |
expect(Example.doecho).to include("1") | |
end | |
end |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'rspec' |
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
GEM | |
remote: https://rubygems.org/ | |
specs: | |
diff-lcs (1.2.5) | |
rspec (3.0.0) | |
rspec-core (~> 3.0.0) | |
rspec-expectations (~> 3.0.0) | |
rspec-mocks (~> 3.0.0) | |
rspec-core (3.0.2) | |
rspec-support (~> 3.0.0) | |
rspec-expectations (3.0.2) | |
diff-lcs (>= 1.2.0, < 2.0) | |
rspec-support (~> 3.0.0) | |
rspec-mocks (3.0.2) | |
rspec-support (~> 3.0.0) | |
rspec-support (3.0.2) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
rspec |
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
$ sudo bin/rspec backtick_spec.rb --format doc | |
Issue 1639 | |
#doecho | |
Finished in 0.02387 seconds (files took 0.1507 seconds to load) | |
1 example, 0 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment