lib/templates/spec/app_spec.rb in andhapp-decoct-1.4.3 vs lib/templates/spec/app_spec.rb in andhapp-decoct-1.4.4
- old
+ new
@@ -1,6 +1,8 @@
-%w{spec spec/interop/test sinatra/test}.each {|x| require x}
+require "spec"
+require "spec/interop/test"
+require "sinatra/test"
set :environment, :test
describe 'App' do
include Sinatra::Test
@@ -8,6 +10,6 @@
it "should pick the spec files for autotest and display error messages with snarl" do
get '/'
response.should be_ok
response.body.should == 'It works!!!'
end
-end
+end
\ No newline at end of file