File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11source 'https://rubygems.org'
22
3- gem 'activemodel' , '4.0.4 '
4- gem 'activesupport' , '4.0.4 '
3+ gem 'activemodel' , '4.1.6 '
4+ gem 'activesupport' , '4.1.6 '
55gem 'rake'
66gem 'sqlite3'
Original file line number Diff line number Diff line change 11GEM
22 remote: https://rubygems.org/
33 specs:
4- activemodel (4.0.4 )
5- activesupport (= 4.0.4 )
6- builder (~> 3.1.0 )
7- activesupport (4.0.4 )
4+ activemodel (4.1.6 )
5+ activesupport (= 4.1.6 )
6+ builder (~> 3.1 )
7+ activesupport (4.1.6 )
88 i18n (~> 0.6 , >= 0.6.9 )
9- minitest (~> 4.2 )
10- multi_json (~> 1.3 )
9+ json (~> 1.7 , >= 1.7.7 )
10+ minitest (~> 5.1 )
1111 thread_safe (~> 0.1 )
12- tzinfo (~> 0.3.37 )
13- atomic (1.1.16 )
14- builder (3.1.4 )
15- i18n (0.6.9 )
16- minitest (4.7.5 )
17- multi_json (1.9.2 )
18- rake (10.1.1 )
12+ tzinfo (~> 1.1 )
13+ builder (3.2.2 )
14+ i18n (0.6.11 )
15+ json (1.8.1 )
16+ minitest (5.4.1 )
17+ rake (10.3.2 )
1918 sqlite3 (1.3.9 )
20- thread_safe (0.3.1 )
21- atomic ( >= 1.1.7 , < 2 )
22- tzinfo ( 0.3.39 )
19+ thread_safe (0.3.4 )
20+ tzinfo ( 1.2. 2 )
21+ thread_safe ( ~> 0.1 )
2322
2423PLATFORMS
2524 ruby
2625
2726DEPENDENCIES
28- activemodel (= 4.0.4 )
29- activesupport (= 4.0.4 )
27+ activemodel (= 4.1.6 )
28+ activesupport (= 4.1.6 )
3029 rake
3130 sqlite3
Original file line number Diff line number Diff line change 1- # Start with: shotgun -I. -Ilib
2- # Under Windows: rackup -I. -Ilib (CTRL+C and restart on each change)
1+ # Start with: shotgun
2+ # Under Windows: rackup (CTRL+C and restart on each change)
33
44class App
55 def call ( env )
Original file line number Diff line number Diff line change 1+ # Boot the framework. Similar to Rails' `config/boot.rb`.
2+
3+ # Activate Bundler. Set up gems listed in the Gemfile.
4+ require 'bundler/setup'
5+
6+ # Add our framework code (lib/) to the load path.
7+ $LOAD_PATH. unshift "lib"
8+
9+ # Add the current directory to load path too so we can `require 'config/routes'` for example.
10+ $LOAD_PATH. unshift "."
11+
12+ # Add all directories of app/ to the load path.
13+ Dir [ "app/*" ] . each do |path |
14+ $LOAD_PATH << path
15+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- require File . dirname ( __FILE__ ) + '/ test_helper'
1+ require " test_helper"
22require "connection_adapter"
33
4- class ConnectionAdapterTest < Test :: Unit ::TestCase
4+ class ConnectionAdapterTest < ActiveSupport ::TestCase
55 def setup
66 @adapter = SqliteAdapter . new
77 end
Original file line number Diff line number Diff line change 1- require File . dirname ( __FILE__ ) + '/ test_helper'
1+ require " test_helper"
22require "action_controller"
33require "app/controllers/application_controller"
44
@@ -37,7 +37,7 @@ def index
3737 end
3838end
3939
40- class FiltersTest < Test :: Unit ::TestCase
40+ class FiltersTest < ActiveSupport ::TestCase
4141 def test_filters
4242 out = [ ]
4343 FiltersTestController . new ( out ) . process ( :index )
Original file line number Diff line number Diff line change 1- require File . dirname ( __FILE__ ) + '/ test_helper'
1+ require " test_helper"
22require "action_controller"
3- require "app/controllers/ application_controller"
4- require "app/controllers/ home_controller"
3+ require "application_controller"
4+ require "home_controller"
55
6- class RenderingTest < Test :: Unit ::TestCase
6+ class RenderingTest < ActiveSupport ::TestCase
77 def setup
88 @controller = HomeController . new
99 end
Original file line number Diff line number Diff line change 1- Dir . chdir File . expand_path ( "../../" , __FILE__ )
2- $LOAD_PATH. unshift "." , "lib" , "test"
1+ require_relative "../lib/boot"
32
4- require "test/unit"
3+ # Load ActiveSupport testing stuff
4+ require 'active_support/testing/autorun'
5+ require 'active_support/test_case'
6+
7+ # Remove warning from ActiveSupport
8+ I18n . enforce_available_locales = true
Original file line number Diff line number Diff line change 1- require File . dirname ( __FILE__ ) + '/ test_helper'
2- require "app/models/ user"
1+ require " test_helper"
2+ require "user"
33
4- class UserTest < Test :: Unit ::TestCase
4+ class UserTest < ActiveSupport ::TestCase
55
66end
You can’t perform that action at this time.
0 commit comments