Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:iafonov/small-blog
Browse files Browse the repository at this point in the history
  • Loading branch information
iafonov committed Feb 4, 2009
2 parents 465d765 + 74fda1b commit abf7d25
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$:.unshift File.dirname(__FILE__) + '/sinatra/lib'

require 'rubygems'
require 'sinatra'
require 'RMagick'
Expand Down
2 changes: 2 additions & 0 deletions main.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$:.unshift File.dirname(__FILE__) + '/sinatra/lib'

require 'rubygems'
require 'sinatra'
require 'activerecord'
Expand Down
1 change: 1 addition & 0 deletions sinatra
14 changes: 1 addition & 13 deletions test/spec_test.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
root_dir = File.expand_path("#{File.dirname(__FILE__)}/..").sub(/^#{Dir.getwd}/, '.')

puts root_dir

$:.unshift "#{root_dir}/sinatra/lib" if File.exist?("#{root_dir}/sinatra")
$:.unshift "#{root_dir}/lib"
$:.unshift "#{root_dir}/test"

require 'rubygems'
require 'spec/interop/test'
require 'sinatra/test/unit'

load 'main.rb'
require 'helper.rb'

describe 'my application' do
it 'should show redirect to about page if accessed from root context' do
Expand Down

0 comments on commit abf7d25

Please sign in to comment.