transactionata 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/README.rdoc +62 -0
- data/Rakefile +33 -0
- data/lib/transactionata/version.rb +3 -0
- data/lib/transactionata.rb +38 -0
- data/test/helper.rb +9 -0
- data/test/rails2/Gemfile +14 -0
- data/test/rails2/Rakefile +10 -0
- data/test/rails2/app/controllers/application_controller.rb +3 -0
- data/test/rails2/app/controllers/posts_controller.rb +83 -0
- data/test/rails2/app/controllers/users_controller.rb +83 -0
- data/test/rails2/app/helpers/application_helper.rb +3 -0
- data/test/rails2/app/helpers/posts_helper.rb +2 -0
- data/test/rails2/app/helpers/users_helper.rb +2 -0
- data/test/rails2/app/models/post.rb +6 -0
- data/test/rails2/app/models/user.rb +9 -0
- data/test/rails2/app/views/layouts/application.html.erb +14 -0
- data/test/rails2/app/views/layouts/posts.html.erb +17 -0
- data/test/rails2/app/views/layouts/users.html.erb +17 -0
- data/test/rails2/app/views/posts/edit.html.erb +24 -0
- data/test/rails2/app/views/posts/index.html.erb +24 -0
- data/test/rails2/app/views/posts/new.html.erb +23 -0
- data/test/rails2/app/views/posts/show.html.erb +18 -0
- data/test/rails2/app/views/users/edit.html.erb +28 -0
- data/test/rails2/app/views/users/index.html.erb +26 -0
- data/test/rails2/app/views/users/new.html.erb +27 -0
- data/test/rails2/app/views/users/show.html.erb +23 -0
- data/test/rails2/config/boot.rb +128 -0
- data/test/rails2/config/database.yml +22 -0
- data/test/rails2/config/environment.rb +38 -0
- data/test/rails2/config/environments/development.rb +17 -0
- data/test/rails2/config/environments/production.rb +28 -0
- data/test/rails2/config/environments/test.rb +28 -0
- data/test/rails2/config/initializers/cookie_verification_secret.rb +7 -0
- data/test/rails2/config/initializers/new_rails_defaults.rb +21 -0
- data/test/rails2/config/initializers/session_store.rb +15 -0
- data/test/rails2/config/locales/en.yml +5 -0
- data/test/rails2/config/preinitializer.rb +20 -0
- data/test/rails2/config/routes.rb +49 -0
- data/test/rails2/db/migrate/20110214150055_create_posts.rb +15 -0
- data/test/rails2/db/migrate/20110214150128_create_users.rb +16 -0
- data/test/rails2/script/about +4 -0
- data/test/rails2/script/console +3 -0
- data/test/rails2/script/dbconsole +3 -0
- data/test/rails2/script/destroy +3 -0
- data/test/rails2/script/generate +3 -0
- data/test/rails2/script/performance/benchmarker +3 -0
- data/test/rails2/script/performance/profiler +3 -0
- data/test/rails2/script/plugin +3 -0
- data/test/rails2/script/runner +3 -0
- data/test/rails2/script/server +3 -0
- data/test/rails2/test/factories/posts_factory.rb +4 -0
- data/test/rails2/test/factories/users_factory.rb +7 -0
- data/test/rails2/test/fixtures/posts.yml +9 -0
- data/test/rails2/test/fixtures/users.yml +1 -0
- data/test/rails2/test/functional/posts_controller_test.rb +57 -0
- data/test/rails2/test/functional/users_controller_test.rb +57 -0
- data/test/rails2/test/integration/ui_test.rb +26 -0
- data/test/rails2/test/test_helper.rb +38 -0
- data/test/rails2/test/unit/helpers/posts_helper_test.rb +4 -0
- data/test/rails2/test/unit/helpers/users_helper_test.rb +4 -0
- data/test/rails2/test/unit/post_test.rb +42 -0
- data/test/rails2/test/unit/user_test.rb +32 -0
- data/test/rails3/Gemfile +37 -0
- data/test/rails3/Rakefile +7 -0
- data/test/rails3/app/controllers/application_controller.rb +3 -0
- data/test/rails3/app/controllers/posts_controller.rb +83 -0
- data/test/rails3/app/controllers/users_controller.rb +83 -0
- data/test/rails3/app/helpers/application_helper.rb +2 -0
- data/test/rails3/app/helpers/posts_helper.rb +2 -0
- data/test/rails3/app/helpers/users_helper.rb +2 -0
- data/test/rails3/app/models/post.rb +6 -0
- data/test/rails3/app/models/user.rb +9 -0
- data/test/rails3/app/views/layouts/application.html.erb +14 -0
- data/test/rails3/app/views/posts/_form.html.erb +25 -0
- data/test/rails3/app/views/posts/edit.html.erb +6 -0
- data/test/rails3/app/views/posts/index.html.erb +25 -0
- data/test/rails3/app/views/posts/new.html.erb +5 -0
- data/test/rails3/app/views/posts/show.html.erb +15 -0
- data/test/rails3/app/views/users/_form.html.erb +33 -0
- data/test/rails3/app/views/users/edit.html.erb +6 -0
- data/test/rails3/app/views/users/index.html.erb +29 -0
- data/test/rails3/app/views/users/new.html.erb +5 -0
- data/test/rails3/app/views/users/show.html.erb +25 -0
- data/test/rails3/config/application.rb +42 -0
- data/test/rails3/config/boot.rb +6 -0
- data/test/rails3/config/database.yml +22 -0
- data/test/rails3/config/environment.rb +5 -0
- data/test/rails3/config/environments/development.rb +26 -0
- data/test/rails3/config/environments/test.rb +35 -0
- data/test/rails3/config/initializers/secret_token.rb +7 -0
- data/test/rails3/config/initializers/session_store.rb +8 -0
- data/test/rails3/config/locales/en.yml +5 -0
- data/test/rails3/config/routes.rb +62 -0
- data/test/rails3/config.ru +4 -0
- data/test/rails3/db/.gitkeep +0 -0
- data/test/rails3/db/migrate/20110212112626_create_posts.rb +14 -0
- data/test/rails3/db/migrate/20110212120554_create_users.rb +16 -0
- data/test/rails3/db/migrate/20110213220543_add_user_reference_to_post.rb +9 -0
- data/test/rails3/script/rails +6 -0
- data/test/rails3/test/factories/posts_factory.rb +4 -0
- data/test/rails3/test/factories/users_factory.rb +7 -0
- data/test/rails3/test/fixtures/posts.yml +9 -0
- data/test/rails3/test/fixtures/users.yml +1 -0
- data/test/rails3/test/functional/posts_controller_test.rb +57 -0
- data/test/rails3/test/functional/users_controller_test.rb +57 -0
- data/test/rails3/test/integration/ui_test.rb +26 -0
- data/test/rails3/test/performance/browsing_test.rb +9 -0
- data/test/rails3/test/test_helper.rb +13 -0
- data/test/rails3/test/unit/helpers/posts_helper_test.rb +4 -0
- data/test/rails3/test/unit/helpers/users_helper_test.rb +4 -0
- data/test/rails3/test/unit/post_test.rb +42 -0
- data/test/rails3/test/unit/user_test.rb +32 -0
- data/test/test_rails2_integration.rb +26 -0
- data/test/test_rails3_integration.rb +26 -0
- data/transactionata.gemspec +24 -0
- metadata +316 -0
@@ -0,0 +1 @@
|
|
1
|
+
# Empty fixtures, just here for table cleanup with transactionata
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class PostsControllerTest < ActionController::TestCase
|
4
|
+
test_data do
|
5
|
+
puts "Loading test data in #{self}"
|
6
|
+
15.times do
|
7
|
+
Factory.create(:post)
|
8
|
+
end
|
9
|
+
Factory.create(:post, :title => "Foobar")
|
10
|
+
end
|
11
|
+
|
12
|
+
setup do
|
13
|
+
@post = Post.find_by_title!('Foobar')
|
14
|
+
end
|
15
|
+
|
16
|
+
test "should get index" do
|
17
|
+
get :index
|
18
|
+
assert_response :success
|
19
|
+
assert_equal 18, assigns(:posts).count # 16 from test_data, 2 from fixtures!
|
20
|
+
end
|
21
|
+
|
22
|
+
test "should get new" do
|
23
|
+
get :new
|
24
|
+
assert_response :success
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should create post" do
|
28
|
+
assert_difference('Post.count') do
|
29
|
+
post :create, :post => @post.attributes
|
30
|
+
end
|
31
|
+
|
32
|
+
assert_redirected_to post_path(assigns(:post))
|
33
|
+
end
|
34
|
+
|
35
|
+
test "should show post" do
|
36
|
+
get :show, :id => @post.to_param
|
37
|
+
assert_response :success
|
38
|
+
end
|
39
|
+
|
40
|
+
test "should get edit" do
|
41
|
+
get :edit, :id => @post.to_param
|
42
|
+
assert_response :success
|
43
|
+
end
|
44
|
+
|
45
|
+
test "should update post" do
|
46
|
+
put :update, :id => @post.to_param, :post => @post.attributes
|
47
|
+
assert_redirected_to post_path(assigns(:post))
|
48
|
+
end
|
49
|
+
|
50
|
+
test "should destroy post" do
|
51
|
+
assert_difference('Post.count', -1) do
|
52
|
+
delete :destroy, :id => @post.to_param
|
53
|
+
end
|
54
|
+
|
55
|
+
assert_redirected_to posts_path
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UsersControllerTest < ActionController::TestCase
|
4
|
+
test_data do
|
5
|
+
puts "Loading test data in #{self}"
|
6
|
+
Factory.create(:user, :login => 'colszowka')
|
7
|
+
8.times do
|
8
|
+
Factory.create(:user)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
setup do
|
13
|
+
@user = User.find_by_login!('colszowka')
|
14
|
+
end
|
15
|
+
|
16
|
+
test "should get index" do
|
17
|
+
get :index
|
18
|
+
assert_response :success
|
19
|
+
assert_equal 9, assigns(:users).count
|
20
|
+
end
|
21
|
+
|
22
|
+
test "should get new" do
|
23
|
+
get :new
|
24
|
+
assert_response :success
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should create user" do
|
28
|
+
assert_difference('User.count') do
|
29
|
+
post :create, :user => @user.attributes
|
30
|
+
end
|
31
|
+
|
32
|
+
assert_redirected_to user_path(assigns(:user))
|
33
|
+
end
|
34
|
+
|
35
|
+
test "should show user" do
|
36
|
+
get :show, :id => @user.to_param
|
37
|
+
assert_response :success
|
38
|
+
end
|
39
|
+
|
40
|
+
test "should get edit" do
|
41
|
+
get :edit, :id => @user.to_param
|
42
|
+
assert_response :success
|
43
|
+
end
|
44
|
+
|
45
|
+
test "should update user" do
|
46
|
+
put :update, :id => @user.to_param, :user => @user.attributes
|
47
|
+
assert_redirected_to user_path(assigns(:user))
|
48
|
+
end
|
49
|
+
|
50
|
+
test "should destroy user" do
|
51
|
+
assert_difference('User.count', -1) do
|
52
|
+
delete :destroy, :id => @user.to_param
|
53
|
+
end
|
54
|
+
|
55
|
+
assert_redirected_to users_path
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UiTest < ActionDispatch::IntegrationTest
|
4
|
+
fixtures :all
|
5
|
+
|
6
|
+
test_data do
|
7
|
+
puts "Loading test data in #{self}"
|
8
|
+
user = Factory.create(:user, :login => 'testuser')
|
9
|
+
|
10
|
+
5.times do
|
11
|
+
Factory.create(:post, :user => user)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
test "GET /users" do
|
16
|
+
get "/users"
|
17
|
+
assert_response :success
|
18
|
+
assert_equal 1, assigns(:users).count
|
19
|
+
end
|
20
|
+
|
21
|
+
test "GET /posts" do
|
22
|
+
get '/posts'
|
23
|
+
assert_response :success
|
24
|
+
assert_equal 7, assigns(:posts).count # 5 for user, 2 from fixtures
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
+
#
|
8
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
+
# -- they do not yet inherit this setting
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class PostTest < ActiveSupport::TestCase
|
4
|
+
test_data do
|
5
|
+
puts "Loading test data in #{self}"
|
6
|
+
10.times do
|
7
|
+
Factory.create(:post)
|
8
|
+
end
|
9
|
+
Factory.create(:post, :title => "Foobar")
|
10
|
+
end
|
11
|
+
|
12
|
+
should belong_to(:user)
|
13
|
+
|
14
|
+
# 11 from test data, 2 from fixtures
|
15
|
+
should "have 13 Posts existing" do
|
16
|
+
assert_equal 13, Post.count
|
17
|
+
end
|
18
|
+
|
19
|
+
should "delete 5 posts" do
|
20
|
+
5.times { assert Post.last.delete }
|
21
|
+
end
|
22
|
+
|
23
|
+
should "destroy 5 posts" do
|
24
|
+
5.times { assert Post.last.delete }
|
25
|
+
end
|
26
|
+
|
27
|
+
should "have post with title 'Foobar'" do
|
28
|
+
assert Post.find_by_title('Foobar')
|
29
|
+
end
|
30
|
+
|
31
|
+
should "have no post with title 'Whatever'" do
|
32
|
+
assert !Post.find_by_title('Whatever')
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
context "after destroying 3 posts" do
|
37
|
+
setup { 3.times { Post.last.destroy } }
|
38
|
+
should "have 10 Posts remaining" do
|
39
|
+
assert_equal 10, Post.count
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UserTest < ActiveSupport::TestCase
|
4
|
+
test_data do
|
5
|
+
puts "Loading test data in #{self}"
|
6
|
+
user = Factory.create(:user, :login => 'testuser')
|
7
|
+
|
8
|
+
5.times do
|
9
|
+
Factory.create(:post, :user => user)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
should have_many(:posts)
|
14
|
+
|
15
|
+
should "create properly from Factory" do
|
16
|
+
assert user = Factory.create(:user)
|
17
|
+
end
|
18
|
+
|
19
|
+
should "delete all" do
|
20
|
+
User.delete_all
|
21
|
+
assert_equal 0, User.count
|
22
|
+
end
|
23
|
+
|
24
|
+
should "have have only the posts that belong to user and 2 from fixtures" do
|
25
|
+
assert_equal 7, Post.count
|
26
|
+
assert_equal 5, User.find_by_login!('testuser').posts.count
|
27
|
+
end
|
28
|
+
|
29
|
+
should "have one User present" do
|
30
|
+
assert_equal 1, User.count
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestRails2Integration < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
ENV['BUNDLE_GEMFILE'] = nil # Bundler confuses the rake test task...
|
6
|
+
@original_wd = Dir.getwd
|
7
|
+
Dir.chdir(File.join(File.dirname(__FILE__), 'rails2'))
|
8
|
+
end
|
9
|
+
|
10
|
+
def teardown
|
11
|
+
Dir.chdir @original_wd
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_passing_rails3_test_suite
|
15
|
+
test_suite_output = `rake test`
|
16
|
+
exit_status = $?
|
17
|
+
|
18
|
+
assert exit_status.success?, "Rails 2 app's test suite should pass! Output was: #{test_suite_output}"
|
19
|
+
|
20
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in PostTest/).length
|
21
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in PostsControllerTest/).length
|
22
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in UserTest/).length
|
23
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in UsersControllerTest/).length
|
24
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in UiTest/).length
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestRails3Integration < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
ENV['BUNDLE_GEMFILE'] = nil # Bundler confuses the rake test task...
|
6
|
+
@original_wd = Dir.getwd
|
7
|
+
Dir.chdir(File.join(File.dirname(__FILE__), 'rails3'))
|
8
|
+
end
|
9
|
+
|
10
|
+
def teardown
|
11
|
+
Dir.chdir @original_wd
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_passing_rails3_test_suite
|
15
|
+
test_suite_output = `rake test`
|
16
|
+
exit_status = $?
|
17
|
+
|
18
|
+
assert exit_status.success?, "Rails 3 app's test suite should pass! Output was: #{test_suite_output}"
|
19
|
+
|
20
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in PostTest/).length
|
21
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in PostsControllerTest/).length
|
22
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in UserTest/).length
|
23
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in UsersControllerTest/).length
|
24
|
+
assert_equal 1, test_suite_output.scan(/Loading test data in UiTest/).length
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "transactionata/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "transactionata"
|
7
|
+
s.version = Transactionata::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Christoph Olszowka"]
|
10
|
+
s.email = ["christoph at olszowka de"]
|
11
|
+
s.homepage = ""
|
12
|
+
s.summary = %q{Transactionata: Transactional dynamic test data for Rails Tests. Set up your models and factories in a block that will be executed once and then rolled back by hooking into ActiveRecord's built-in fixture transactions}
|
13
|
+
s.description = %q{Transactionata: Transactional dynamic test data for Rails Tests. Set up your models and factories in a block that will be executed once and then rolled back by hooking into ActiveRecord's built-in fixture transactions}
|
14
|
+
|
15
|
+
s.rubyforge_project = "transactionata"
|
16
|
+
|
17
|
+
s.add_development_dependency 'shoulda'
|
18
|
+
s.add_development_dependency 'rails'
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
|
+
s.require_paths = ["lib"]
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,316 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: transactionata
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
version: 0.1.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Christoph Olszowka
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2011-02-14 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: shoulda
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :development
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rails
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
44
|
+
type: :development
|
45
|
+
version_requirements: *id002
|
46
|
+
description: "Transactionata: Transactional dynamic test data for Rails Tests. Set up your models and factories in a block that will be executed once and then rolled back by hooking into ActiveRecord's built-in fixture transactions"
|
47
|
+
email:
|
48
|
+
- christoph at olszowka de
|
49
|
+
executables: []
|
50
|
+
|
51
|
+
extensions: []
|
52
|
+
|
53
|
+
extra_rdoc_files: []
|
54
|
+
|
55
|
+
files:
|
56
|
+
- .gitignore
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE
|
59
|
+
- README.rdoc
|
60
|
+
- Rakefile
|
61
|
+
- lib/transactionata.rb
|
62
|
+
- lib/transactionata/version.rb
|
63
|
+
- test/helper.rb
|
64
|
+
- test/rails2/Gemfile
|
65
|
+
- test/rails2/Rakefile
|
66
|
+
- test/rails2/app/controllers/application_controller.rb
|
67
|
+
- test/rails2/app/controllers/posts_controller.rb
|
68
|
+
- test/rails2/app/controllers/users_controller.rb
|
69
|
+
- test/rails2/app/helpers/application_helper.rb
|
70
|
+
- test/rails2/app/helpers/posts_helper.rb
|
71
|
+
- test/rails2/app/helpers/users_helper.rb
|
72
|
+
- test/rails2/app/models/post.rb
|
73
|
+
- test/rails2/app/models/user.rb
|
74
|
+
- test/rails2/app/views/layouts/application.html.erb
|
75
|
+
- test/rails2/app/views/layouts/posts.html.erb
|
76
|
+
- test/rails2/app/views/layouts/users.html.erb
|
77
|
+
- test/rails2/app/views/posts/edit.html.erb
|
78
|
+
- test/rails2/app/views/posts/index.html.erb
|
79
|
+
- test/rails2/app/views/posts/new.html.erb
|
80
|
+
- test/rails2/app/views/posts/show.html.erb
|
81
|
+
- test/rails2/app/views/users/edit.html.erb
|
82
|
+
- test/rails2/app/views/users/index.html.erb
|
83
|
+
- test/rails2/app/views/users/new.html.erb
|
84
|
+
- test/rails2/app/views/users/show.html.erb
|
85
|
+
- test/rails2/config/boot.rb
|
86
|
+
- test/rails2/config/database.yml
|
87
|
+
- test/rails2/config/environment.rb
|
88
|
+
- test/rails2/config/environments/development.rb
|
89
|
+
- test/rails2/config/environments/production.rb
|
90
|
+
- test/rails2/config/environments/test.rb
|
91
|
+
- test/rails2/config/initializers/cookie_verification_secret.rb
|
92
|
+
- test/rails2/config/initializers/new_rails_defaults.rb
|
93
|
+
- test/rails2/config/initializers/session_store.rb
|
94
|
+
- test/rails2/config/locales/en.yml
|
95
|
+
- test/rails2/config/preinitializer.rb
|
96
|
+
- test/rails2/config/routes.rb
|
97
|
+
- test/rails2/db/migrate/20110214150055_create_posts.rb
|
98
|
+
- test/rails2/db/migrate/20110214150128_create_users.rb
|
99
|
+
- test/rails2/script/about
|
100
|
+
- test/rails2/script/console
|
101
|
+
- test/rails2/script/dbconsole
|
102
|
+
- test/rails2/script/destroy
|
103
|
+
- test/rails2/script/generate
|
104
|
+
- test/rails2/script/performance/benchmarker
|
105
|
+
- test/rails2/script/performance/profiler
|
106
|
+
- test/rails2/script/plugin
|
107
|
+
- test/rails2/script/runner
|
108
|
+
- test/rails2/script/server
|
109
|
+
- test/rails2/test/factories/posts_factory.rb
|
110
|
+
- test/rails2/test/factories/users_factory.rb
|
111
|
+
- test/rails2/test/fixtures/posts.yml
|
112
|
+
- test/rails2/test/fixtures/users.yml
|
113
|
+
- test/rails2/test/functional/posts_controller_test.rb
|
114
|
+
- test/rails2/test/functional/users_controller_test.rb
|
115
|
+
- test/rails2/test/integration/ui_test.rb
|
116
|
+
- test/rails2/test/test_helper.rb
|
117
|
+
- test/rails2/test/unit/helpers/posts_helper_test.rb
|
118
|
+
- test/rails2/test/unit/helpers/users_helper_test.rb
|
119
|
+
- test/rails2/test/unit/post_test.rb
|
120
|
+
- test/rails2/test/unit/user_test.rb
|
121
|
+
- test/rails3/Gemfile
|
122
|
+
- test/rails3/Rakefile
|
123
|
+
- test/rails3/app/controllers/application_controller.rb
|
124
|
+
- test/rails3/app/controllers/posts_controller.rb
|
125
|
+
- test/rails3/app/controllers/users_controller.rb
|
126
|
+
- test/rails3/app/helpers/application_helper.rb
|
127
|
+
- test/rails3/app/helpers/posts_helper.rb
|
128
|
+
- test/rails3/app/helpers/users_helper.rb
|
129
|
+
- test/rails3/app/models/post.rb
|
130
|
+
- test/rails3/app/models/user.rb
|
131
|
+
- test/rails3/app/views/layouts/application.html.erb
|
132
|
+
- test/rails3/app/views/posts/_form.html.erb
|
133
|
+
- test/rails3/app/views/posts/edit.html.erb
|
134
|
+
- test/rails3/app/views/posts/index.html.erb
|
135
|
+
- test/rails3/app/views/posts/new.html.erb
|
136
|
+
- test/rails3/app/views/posts/show.html.erb
|
137
|
+
- test/rails3/app/views/users/_form.html.erb
|
138
|
+
- test/rails3/app/views/users/edit.html.erb
|
139
|
+
- test/rails3/app/views/users/index.html.erb
|
140
|
+
- test/rails3/app/views/users/new.html.erb
|
141
|
+
- test/rails3/app/views/users/show.html.erb
|
142
|
+
- test/rails3/config.ru
|
143
|
+
- test/rails3/config/application.rb
|
144
|
+
- test/rails3/config/boot.rb
|
145
|
+
- test/rails3/config/database.yml
|
146
|
+
- test/rails3/config/environment.rb
|
147
|
+
- test/rails3/config/environments/development.rb
|
148
|
+
- test/rails3/config/environments/test.rb
|
149
|
+
- test/rails3/config/initializers/secret_token.rb
|
150
|
+
- test/rails3/config/initializers/session_store.rb
|
151
|
+
- test/rails3/config/locales/en.yml
|
152
|
+
- test/rails3/config/routes.rb
|
153
|
+
- test/rails3/db/.gitkeep
|
154
|
+
- test/rails3/db/migrate/20110212112626_create_posts.rb
|
155
|
+
- test/rails3/db/migrate/20110212120554_create_users.rb
|
156
|
+
- test/rails3/db/migrate/20110213220543_add_user_reference_to_post.rb
|
157
|
+
- test/rails3/script/rails
|
158
|
+
- test/rails3/test/factories/posts_factory.rb
|
159
|
+
- test/rails3/test/factories/users_factory.rb
|
160
|
+
- test/rails3/test/fixtures/posts.yml
|
161
|
+
- test/rails3/test/fixtures/users.yml
|
162
|
+
- test/rails3/test/functional/posts_controller_test.rb
|
163
|
+
- test/rails3/test/functional/users_controller_test.rb
|
164
|
+
- test/rails3/test/integration/ui_test.rb
|
165
|
+
- test/rails3/test/performance/browsing_test.rb
|
166
|
+
- test/rails3/test/test_helper.rb
|
167
|
+
- test/rails3/test/unit/helpers/posts_helper_test.rb
|
168
|
+
- test/rails3/test/unit/helpers/users_helper_test.rb
|
169
|
+
- test/rails3/test/unit/post_test.rb
|
170
|
+
- test/rails3/test/unit/user_test.rb
|
171
|
+
- test/test_rails2_integration.rb
|
172
|
+
- test/test_rails3_integration.rb
|
173
|
+
- transactionata.gemspec
|
174
|
+
has_rdoc: true
|
175
|
+
homepage: ""
|
176
|
+
licenses: []
|
177
|
+
|
178
|
+
post_install_message:
|
179
|
+
rdoc_options: []
|
180
|
+
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
segments:
|
189
|
+
- 0
|
190
|
+
version: "0"
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
+
none: false
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
segments:
|
197
|
+
- 0
|
198
|
+
version: "0"
|
199
|
+
requirements: []
|
200
|
+
|
201
|
+
rubyforge_project: transactionata
|
202
|
+
rubygems_version: 1.3.7
|
203
|
+
signing_key:
|
204
|
+
specification_version: 3
|
205
|
+
summary: "Transactionata: Transactional dynamic test data for Rails Tests. Set up your models and factories in a block that will be executed once and then rolled back by hooking into ActiveRecord's built-in fixture transactions"
|
206
|
+
test_files:
|
207
|
+
- test/helper.rb
|
208
|
+
- test/rails2/Gemfile
|
209
|
+
- test/rails2/Rakefile
|
210
|
+
- test/rails2/app/controllers/application_controller.rb
|
211
|
+
- test/rails2/app/controllers/posts_controller.rb
|
212
|
+
- test/rails2/app/controllers/users_controller.rb
|
213
|
+
- test/rails2/app/helpers/application_helper.rb
|
214
|
+
- test/rails2/app/helpers/posts_helper.rb
|
215
|
+
- test/rails2/app/helpers/users_helper.rb
|
216
|
+
- test/rails2/app/models/post.rb
|
217
|
+
- test/rails2/app/models/user.rb
|
218
|
+
- test/rails2/app/views/layouts/application.html.erb
|
219
|
+
- test/rails2/app/views/layouts/posts.html.erb
|
220
|
+
- test/rails2/app/views/layouts/users.html.erb
|
221
|
+
- test/rails2/app/views/posts/edit.html.erb
|
222
|
+
- test/rails2/app/views/posts/index.html.erb
|
223
|
+
- test/rails2/app/views/posts/new.html.erb
|
224
|
+
- test/rails2/app/views/posts/show.html.erb
|
225
|
+
- test/rails2/app/views/users/edit.html.erb
|
226
|
+
- test/rails2/app/views/users/index.html.erb
|
227
|
+
- test/rails2/app/views/users/new.html.erb
|
228
|
+
- test/rails2/app/views/users/show.html.erb
|
229
|
+
- test/rails2/config/boot.rb
|
230
|
+
- test/rails2/config/database.yml
|
231
|
+
- test/rails2/config/environment.rb
|
232
|
+
- test/rails2/config/environments/development.rb
|
233
|
+
- test/rails2/config/environments/production.rb
|
234
|
+
- test/rails2/config/environments/test.rb
|
235
|
+
- test/rails2/config/initializers/cookie_verification_secret.rb
|
236
|
+
- test/rails2/config/initializers/new_rails_defaults.rb
|
237
|
+
- test/rails2/config/initializers/session_store.rb
|
238
|
+
- test/rails2/config/locales/en.yml
|
239
|
+
- test/rails2/config/preinitializer.rb
|
240
|
+
- test/rails2/config/routes.rb
|
241
|
+
- test/rails2/db/migrate/20110214150055_create_posts.rb
|
242
|
+
- test/rails2/db/migrate/20110214150128_create_users.rb
|
243
|
+
- test/rails2/script/about
|
244
|
+
- test/rails2/script/console
|
245
|
+
- test/rails2/script/dbconsole
|
246
|
+
- test/rails2/script/destroy
|
247
|
+
- test/rails2/script/generate
|
248
|
+
- test/rails2/script/performance/benchmarker
|
249
|
+
- test/rails2/script/performance/profiler
|
250
|
+
- test/rails2/script/plugin
|
251
|
+
- test/rails2/script/runner
|
252
|
+
- test/rails2/script/server
|
253
|
+
- test/rails2/test/factories/posts_factory.rb
|
254
|
+
- test/rails2/test/factories/users_factory.rb
|
255
|
+
- test/rails2/test/fixtures/posts.yml
|
256
|
+
- test/rails2/test/fixtures/users.yml
|
257
|
+
- test/rails2/test/functional/posts_controller_test.rb
|
258
|
+
- test/rails2/test/functional/users_controller_test.rb
|
259
|
+
- test/rails2/test/integration/ui_test.rb
|
260
|
+
- test/rails2/test/test_helper.rb
|
261
|
+
- test/rails2/test/unit/helpers/posts_helper_test.rb
|
262
|
+
- test/rails2/test/unit/helpers/users_helper_test.rb
|
263
|
+
- test/rails2/test/unit/post_test.rb
|
264
|
+
- test/rails2/test/unit/user_test.rb
|
265
|
+
- test/rails3/Gemfile
|
266
|
+
- test/rails3/Rakefile
|
267
|
+
- test/rails3/app/controllers/application_controller.rb
|
268
|
+
- test/rails3/app/controllers/posts_controller.rb
|
269
|
+
- test/rails3/app/controllers/users_controller.rb
|
270
|
+
- test/rails3/app/helpers/application_helper.rb
|
271
|
+
- test/rails3/app/helpers/posts_helper.rb
|
272
|
+
- test/rails3/app/helpers/users_helper.rb
|
273
|
+
- test/rails3/app/models/post.rb
|
274
|
+
- test/rails3/app/models/user.rb
|
275
|
+
- test/rails3/app/views/layouts/application.html.erb
|
276
|
+
- test/rails3/app/views/posts/_form.html.erb
|
277
|
+
- test/rails3/app/views/posts/edit.html.erb
|
278
|
+
- test/rails3/app/views/posts/index.html.erb
|
279
|
+
- test/rails3/app/views/posts/new.html.erb
|
280
|
+
- test/rails3/app/views/posts/show.html.erb
|
281
|
+
- test/rails3/app/views/users/_form.html.erb
|
282
|
+
- test/rails3/app/views/users/edit.html.erb
|
283
|
+
- test/rails3/app/views/users/index.html.erb
|
284
|
+
- test/rails3/app/views/users/new.html.erb
|
285
|
+
- test/rails3/app/views/users/show.html.erb
|
286
|
+
- test/rails3/config.ru
|
287
|
+
- test/rails3/config/application.rb
|
288
|
+
- test/rails3/config/boot.rb
|
289
|
+
- test/rails3/config/database.yml
|
290
|
+
- test/rails3/config/environment.rb
|
291
|
+
- test/rails3/config/environments/development.rb
|
292
|
+
- test/rails3/config/environments/test.rb
|
293
|
+
- test/rails3/config/initializers/secret_token.rb
|
294
|
+
- test/rails3/config/initializers/session_store.rb
|
295
|
+
- test/rails3/config/locales/en.yml
|
296
|
+
- test/rails3/config/routes.rb
|
297
|
+
- test/rails3/db/.gitkeep
|
298
|
+
- test/rails3/db/migrate/20110212112626_create_posts.rb
|
299
|
+
- test/rails3/db/migrate/20110212120554_create_users.rb
|
300
|
+
- test/rails3/db/migrate/20110213220543_add_user_reference_to_post.rb
|
301
|
+
- test/rails3/script/rails
|
302
|
+
- test/rails3/test/factories/posts_factory.rb
|
303
|
+
- test/rails3/test/factories/users_factory.rb
|
304
|
+
- test/rails3/test/fixtures/posts.yml
|
305
|
+
- test/rails3/test/fixtures/users.yml
|
306
|
+
- test/rails3/test/functional/posts_controller_test.rb
|
307
|
+
- test/rails3/test/functional/users_controller_test.rb
|
308
|
+
- test/rails3/test/integration/ui_test.rb
|
309
|
+
- test/rails3/test/performance/browsing_test.rb
|
310
|
+
- test/rails3/test/test_helper.rb
|
311
|
+
- test/rails3/test/unit/helpers/posts_helper_test.rb
|
312
|
+
- test/rails3/test/unit/helpers/users_helper_test.rb
|
313
|
+
- test/rails3/test/unit/post_test.rb
|
314
|
+
- test/rails3/test/unit/user_test.rb
|
315
|
+
- test/test_rails2_integration.rb
|
316
|
+
- test/test_rails3_integration.rb
|