spec/lib/smallcage/commands/export_spec.rb in smallcage-0.2.6 vs spec/lib/smallcage/commands/export_spec.rb in smallcage-0.2.7
- old
+ new
@@ -11,14 +11,14 @@
:path => docroot.to_s,
:out => outdir.to_s,
:quiet => true }
SmallCage::Runner.run(opts)
- (outdir + "./a/test.html.smc").exist?.should_not be_true
- (outdir + "./a/test.html").exist?.should_not be_true
- (outdir + "./a/b/test.html").exist?.should be_true
- (outdir + "./a/b/c/test.html").exist?.should be_true
+ (outdir + "./a/test.html.smc").exist?.should be false
+ (outdir + "./a/test.html").exist?.should be false
+ (outdir + "./a/b/test.html").exist?.should be true
+ (outdir + "./a/b/c/test.html").exist?.should be true
ensure
FileUtils.rm_r(outdir)
end
end
@@ -29,14 +29,14 @@
:path => path.to_s,
:out => outdir.to_s,
:quiet => true }
SmallCage::Runner.run(opts)
- (outdir + "./a/test.html.smc").exist?.should_not be_true
- (outdir + "./a/test.html").exist?.should_not be_true
- (outdir + "./a/b/test.html").exist?.should_not be_true
+ (outdir + "./a/test.html.smc").exist?.should be false
+ (outdir + "./a/test.html").exist?.should be false
+ (outdir + "./a/b/test.html").exist?.should be false
- (outdir + "./a/b/c/test.html").exist?.should be_true
+ (outdir + "./a/b/c/test.html").exist?.should be true
ensure
FileUtils.rm_r(outdir)
end
end
end