Skip to content

Instantly share code, notes, and snippets.

@myronmarston myronmarston/.gitignore
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.