Permalink
Browse files

Starting trivial app

  • Loading branch information...
jc00ke committed Mar 3, 2010
1 parent 00e11da commit ca1ffa1a771a98bb584f211cdd139809f2a412a0
@@ -0,0 +1,4 @@
+--colour
+--format progress
+--loadby mtime
+--reverse
@@ -0,0 +1,22 @@
+# loading the app
+
+project_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+
+%w( rubygems
+ sinatra
+ rack/test
+ pp
+ spec
+ spec/autorun
+ spec/interop/test).each{ |r| require r }
+
+require File.join(project_root, 'trivial')
+
+set :environment, :test
+set :run, false
+set :raise_errors, true
+set :logging, false
+
+Spec::Runner.configure do |conf|
+ conf.include Rack::Test::Methods
+end
@@ -0,0 +1,17 @@
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe 'Widgets App' do
+
+ def app
+ @app ||= Sinatra::Application
+ end
+
+ context "'/' route" do
+
+ it 'should respond successfully' do
+ get '/'
+ last_response.should be_ok
+ end
+
+ end
+end
@@ -1,3 +1,13 @@
-require 'rubygems'
-require 'sinatra'
-require 'dm-core'
+%w(rubygems sinatra dm-core haml sass).each{ |lib| require lib }
+
+configure :development do
+ Sinatra::Application.reset!
+ use Rack::Reloader
+
+end
+
+
+
+get '/' do
+
+end

0 comments on commit ca1ffa1

Please sign in to comment.