Skip to content
Browse files

fix specs and prepare 0.2.7

  • Loading branch information...
1 parent 3c6e82d commit d3495fa9231da3aefc148fce77aecc11ed202346 @zilkey committed Apr 24, 2012
Showing with 9 additions and 6 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −1 lib/auto_tagger/version.rb
  3. +5 −5 spec/auto_tagger/commander_spec.rb
View
3 CHANGELOG
@@ -1,3 +1,6 @@
+2012-04-23
+ - Fix problem with cd'ing into directories with characters that need to be escaped (niedfelj)
+
2011-09-15
- Fixed broken gemspec that mistakenly included all development dependencies as live dependencies
- Removed dependency on jeweler for creating the gemspec
View
2 lib/auto_tagger/version.rb
@@ -1,3 +1,3 @@
module AutoTagger
- VERSION = "0.2.6"
+ VERSION = "0.2.7"
end
View
10 spec/auto_tagger/commander_spec.rb
@@ -5,37 +5,37 @@
describe "#read" do
it "execute the command and returns the results" do
commander = AutoTagger::Commander.new("/foo", false)
- commander.should_receive(:`).with("cd /foo && ls")
+ commander.should_receive(:`).with('cd "/foo" && ls')
commander.read("ls")
end
it "puts the response when it's verbose" do
commander = AutoTagger::Commander.new("/foo", true)
commander.stub(:`)
- commander.should_receive(:puts).with("cd /foo && ls")
+ commander.should_receive(:puts).with('cd "/foo" && ls')
commander.read("ls")
end
end
describe "#execute" do
it "executes and doesn't return anything" do
commander = AutoTagger::Commander.new("/foo", false)
- commander.should_receive(:system).with("cd /foo && ls")
+ commander.should_receive(:system).with('cd "/foo" && ls')
commander.execute("ls")
end
it "puts the response when it's verbose" do
commander = AutoTagger::Commander.new("/foo", true)
commander.stub(:system)
- commander.should_receive(:puts).with("cd /foo && ls")
+ commander.should_receive(:puts).with('cd "/foo" && ls')
commander.execute("ls")
end
end
describe "#print" do
it "returns the command to be run" do
commander = AutoTagger::Commander.new("/foo", false)
- commander.should_receive(:puts).with("cd /foo && ls")
+ commander.should_receive(:puts).with('cd "/foo" && ls')
commander.print("ls")
end
end

0 comments on commit d3495fa

Please sign in to comment.
Something went wrong with that request. Please try again.