Created
August 7, 2012 13:59
-
-
Save jmazzi/3285581 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
class BackTicks | |
def run | |
`pwd` | |
end | |
end | |
describe BackTicks do | |
subject { BackTicks.new } | |
it "should execute run" do | |
subject.should_receive(:`).with('pwd').and_return '/home' | |
subject.run.should == '/home' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.
Finished in 0.0004 seconds
1 example, 0 failures