spec/commands/mkspec_spec.rb in mspec-1.2.0 vs spec/commands/mkspec_spec.rb in mspec-1.3.0
- old
+ new
@@ -206,9 +206,19 @@
@response.should_receive(:=~).and_return(false)
@file.should_receive(:puts)
@script.should_receive(:puts).with("spec/core/tcejbo/inspect_spec.rb")
@script.write_spec("spec/core/tcejbo/inspect_spec.rb", "Object#inspect", true)
end
+
+ it "writes a template spec" do
+ @file.should_receive(:puts).with(<<EOS)
+
+describe "Object#inspect" do
+ it "needs to be reviewed for spec completeness"
+end
+EOS
+ @script.write_spec("spec/core/tcejbo/inspect_spec.rb", "Object#inspect", true)
+ end
end
describe MkSpec, "#create_file" do
before :each do
@script = MkSpec.new