test/ts_script.rb in andhapp-decoct-1.1.0 vs test/ts_script.rb in andhapp-decoct-1.2.0
- old
+ new
@@ -4,13 +4,13 @@
def dir_in_app_folder
Dir.entries("epoxys").each {|x| [] << x if !File.directory?(x)}
end
- context "creating sinatra app with rspec" do
+ context "creating a brand new sinatra-rspec app" do
setup do
- @script = Dedoct::Dscript.new('epoxys')
+ @script = Decoct::Dscript.new('epoxys')
@app_name = @script.app_name
@script.create_app_dir
end
should 'create the app directory' do
@@ -73,15 +73,15 @@
end
context "raise exception when app name is nil or empty" do
should 'raise an error if there is no app_name is empty' do
- assert_raises(RuntimeError) {@script = Dedoct::Dscript.new('')}
+ assert_raises(RuntimeError) {Decoct::Dscript.new('')}
end
should 'raise an error if there is no app_name is nil' do
- assert_raises(RuntimeError) {@script = Dedoct::Dscript.new(nil)}
+ assert_raises(RuntimeError) {Decoct::Dscript.new(nil)}
end
end
-
+
end