fixture_background 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ module FixtureBackground
3
3
 
4
4
  class << self
5
5
  def class_for_test(full_class_name, background_to_use, test_unit_class)
6
+ full_class_name = full_class_name.gsub("::", "__")
6
7
  class_by_name(full_class_name) || create_class(full_class_name, test_unit_class, background_to_use)
7
8
  end
8
9
 
@@ -1,4 +1,4 @@
1
1
  module FixtureBackground
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
4
4
 
@@ -0,0 +1,5 @@
1
+ class Namespaced::PostsController < ApplicationController
2
+ def index
3
+ render :text => "ok"
4
+ end
5
+ end
@@ -1,5 +1,9 @@
1
1
  Rails3::Application.routes.draw do
2
2
  resources :people
3
+
4
+ namespace :namespaced do
5
+ resources :posts
6
+ end
3
7
 
4
8
  # The priority is based upon order of creation:
5
9
  # first created -> highest priority.
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ class Namespaced::PostsControllerTest < ActionController::TestCase
4
+ background do
5
+ end
6
+
7
+ should "get index" do
8
+ get :index
9
+ assert_response :success
10
+ end
11
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 2
9
- version: 0.9.2
8
+ - 3
9
+ version: 0.9.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Thies C. Arntzen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-27 00:00:00 +01:00
18
+ date: 2011-02-04 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -49,6 +49,7 @@ files:
49
49
  - test/rails3/README
50
50
  - test/rails3/Rakefile
51
51
  - test/rails3/app/controllers/application_controller.rb
52
+ - test/rails3/app/controllers/namespaced/posts_controller.rb
52
53
  - test/rails3/app/controllers/people_controller.rb
53
54
  - test/rails3/app/helpers/application_helper.rb
54
55
  - test/rails3/app/helpers/people_helper.rb
@@ -95,6 +96,7 @@ files:
95
96
  - test/rails3/public/stylesheets/.gitkeep
96
97
  - test/rails3/public/stylesheets/scaffold.css
97
98
  - test/rails3/script/rails
99
+ - test/rails3/test/functional/namespaced/posts_controller_test.rb
98
100
  - test/rails3/test/functional/people_controller_test.rb
99
101
  - test/rails3/test/performance/browsing_test.rb
100
102
  - test/rails3/test/test_helper.rb
@@ -140,6 +142,7 @@ test_files:
140
142
  - test/rails3/README
141
143
  - test/rails3/Rakefile
142
144
  - test/rails3/app/controllers/application_controller.rb
145
+ - test/rails3/app/controllers/namespaced/posts_controller.rb
143
146
  - test/rails3/app/controllers/people_controller.rb
144
147
  - test/rails3/app/helpers/application_helper.rb
145
148
  - test/rails3/app/helpers/people_helper.rb
@@ -186,6 +189,7 @@ test_files:
186
189
  - test/rails3/public/stylesheets/.gitkeep
187
190
  - test/rails3/public/stylesheets/scaffold.css
188
191
  - test/rails3/script/rails
192
+ - test/rails3/test/functional/namespaced/posts_controller_test.rb
189
193
  - test/rails3/test/functional/people_controller_test.rb
190
194
  - test/rails3/test/performance/browsing_test.rb
191
195
  - test/rails3/test/test_helper.rb