Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myronmarston/bbbacda52fd00e0e6522 to your computer and use it in GitHub Desktop.
Save myronmarston/bbbacda52fd00e0e6522 to your computer and use it in GitHub Desktop.
bin
bundle
.bundle
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
# A sample Gemfile
source "https://rubygems.org"
gem 'rspec'
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
$ 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