should_pricot 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/Rakefile +0 -13
- data/VERSION +1 -0
- data/lib/should_pricot/test_helper_methods.rb +21 -0
- data/lib/should_pricot.rb +8 -19
- data/test/should_pricot_test.rb +5 -0
- data/test/test_helper.rb +8 -25
- metadata +21 -114
- data/Manifest +0 -92
- data/should_pricot.gemspec +0 -31
- data/tasks/should_pricot_tasks.rake +0 -4
- data/test/fixtures/posts.yml +0 -4
- data/test/fixtures/users.yml +0 -9
- data/test/functional/users_controller_test.rb +0 -16
- data/test/test-app/app/controllers/application_controller.rb +0 -10
- data/test/test-app/app/controllers/users_controller.rb +0 -40
- data/test/test-app/app/helpers/application_helper.rb +0 -3
- data/test/test-app/app/models/post.rb +0 -3
- data/test/test-app/app/models/user.rb +0 -7
- data/test/test-app/app/views/users/edit.html.erb +0 -0
- data/test/test-app/app/views/users/index.html.erb +0 -9
- data/test/test-app/app/views/users/new.html.erb +0 -0
- data/test/test-app/config/boot.rb +0 -110
- data/test/test-app/config/database.yml +0 -4
- data/test/test-app/config/environment.rb +0 -12
- data/test/test-app/config/environments/test.rb +0 -0
- data/test/test-app/config/initializers/funktional.rb +0 -8
- data/test/test-app/config/initializers/new_rails_defaults.rb +0 -21
- data/test/test-app/config/routes.rb +0 -5
- data/test/test-app/db/migrate/001_create_users.rb +0 -18
- data/test/test-app/db/migrate/002_create_posts.rb +0 -13
- data/test/test-app/public/404.html +0 -30
- data/test/test-app/public/422.html +0 -30
- data/test/test-app/public/500.html +0 -30
- data/test/test-app/script/console +0 -3
- data/test/test-app/script/generate +0 -3
- data/test/test-app/vendor/plugins/funktional/MIT-LICENSE +0 -20
- data/test/test-app/vendor/plugins/funktional/README.rdoc +0 -289
- data/test/test-app/vendor/plugins/funktional/Rakefile +0 -23
- data/test/test-app/vendor/plugins/funktional/init.rb +0 -8
- data/test/test-app/vendor/plugins/funktional/install.rb +0 -1
- data/test/test-app/vendor/plugins/funktional/lib/funktional/assertion.rb +0 -9
- data/test/test-app/vendor/plugins/funktional/lib/funktional/assigned_assertion.rb +0 -39
- data/test/test-app/vendor/plugins/funktional/lib/funktional/attribute_test_helper.rb +0 -27
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/assigned_should_block.rb +0 -32
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/collector.rb +0 -21
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/count_should_block.rb +0 -21
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/delegating_should_block.rb +0 -30
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/element_should_block.rb +0 -29
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/flashed_should_block.rb +0 -17
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_block.rb +0 -60
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_create_block.rb +0 -17
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_delete_block.rb +0 -17
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_block.rb +0 -20
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_create_block.rb +0 -17
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_delete_block.rb +0 -17
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_send_email_block.rb +0 -18
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context/stack_recorder.rb +0 -34
- data/test/test-app/vendor/plugins/funktional/lib/funktional/context.rb +0 -126
- data/test/test-app/vendor/plugins/funktional/lib/funktional/email_assertion.rb +0 -50
- data/test/test-app/vendor/plugins/funktional/lib/funktional/flashed_assertion.rb +0 -12
- data/test/test-app/vendor/plugins/funktional/lib/funktional/model_assertions.rb +0 -108
- data/test/test-app/vendor/plugins/funktional/lib/funktional/random_characters.rb +0 -11
- data/test/test-app/vendor/plugins/funktional/lib/funktional/recursive_assertion.rb +0 -23
- data/test/test-app/vendor/plugins/funktional/lib/funktional/route_checker.rb +0 -49
- data/test/test-app/vendor/plugins/funktional/lib/funktional/setup.rb +0 -11
- data/test/test-app/vendor/plugins/funktional/lib/funktional/test_class_methods.rb +0 -28
- data/test/test-app/vendor/plugins/funktional/lib/funktional/test_instance_methods.rb +0 -131
- data/test/test-app/vendor/plugins/funktional/lib/funktional.rb +0 -41
- data/test/test-app/vendor/plugins/funktional/tasks/should_b_tasks.rake +0 -4
- data/test/test-app/vendor/plugins/funktional/test/fixtures/posts.yml +0 -4
- data/test/test-app/vendor/plugins/funktional/test/fixtures/users.yml +0 -5
- data/test/test-app/vendor/plugins/funktional/test/test-app/app/controllers/application_controller.rb +0 -10
- data/test/test-app/vendor/plugins/funktional/test/test-app/app/helpers/application_helper.rb +0 -3
- data/test/test-app/vendor/plugins/funktional/test/test-app/app/models/post.rb +0 -3
- data/test/test-app/vendor/plugins/funktional/test/test-app/app/models/user.rb +0 -7
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/boot.rb +0 -110
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/database.yml +0 -4
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/environment.rb +0 -12
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/environments/test.rb +0 -0
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/initializers/funktional.rb +0 -8
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/initializers/new_rails_defaults.rb +0 -21
- data/test/test-app/vendor/plugins/funktional/test/test-app/config/routes.rb +0 -4
- data/test/test-app/vendor/plugins/funktional/test/test-app/db/migrate/001_create_users.rb +0 -18
- data/test/test-app/vendor/plugins/funktional/test/test-app/db/migrate/002_create_posts.rb +0 -13
- data/test/test-app/vendor/plugins/funktional/test/test-app/public/404.html +0 -30
- data/test/test-app/vendor/plugins/funktional/test/test-app/public/422.html +0 -30
- data/test/test-app/vendor/plugins/funktional/test/test-app/public/500.html +0 -30
- data/test/test-app/vendor/plugins/funktional/test/test-app/script/console +0 -3
- data/test/test-app/vendor/plugins/funktional/test/test-app/script/generate +0 -3
- data/test/test-app/vendor/plugins/funktional/test/test_helper.rb +0 -27
- data/test/test-app/vendor/plugins/funktional/test/unit/user_test.rb +0 -12
- data/test/test-app/vendor/plugins/funktional/uninstall.rb +0 -1
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/404.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
27
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>The change you wanted was rejected (422)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/422.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>The change you wanted was rejected.</h1>
|
27
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>We're sorry, but something went wrong (500)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/500.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>We're sorry, but something went wrong.</h1>
|
27
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
|
3
|
-
# Load the environment
|
4
|
-
ENV['RAILS_ENV'] = 'test'
|
5
|
-
|
6
|
-
test_app = File.dirname(__FILE__) + '/test-app'
|
7
|
-
|
8
|
-
require "#{test_app}/config/environment.rb"
|
9
|
-
|
10
|
-
# Load the testing framework
|
11
|
-
require 'test_help'
|
12
|
-
silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] }
|
13
|
-
|
14
|
-
# Run the migrations
|
15
|
-
ActiveRecord::Migration.verbose = false
|
16
|
-
ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
|
17
|
-
|
18
|
-
# Setup the fixtures path
|
19
|
-
ActiveSupport::TestCase.fixture_path =
|
20
|
-
File.join(File.dirname(__FILE__), "fixtures")
|
21
|
-
|
22
|
-
class ActiveSupport::TestCase #:nodoc:
|
23
|
-
setup :funktional
|
24
|
-
|
25
|
-
self.use_transactional_fixtures = false
|
26
|
-
self.use_instantiated_fixtures = false
|
27
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class UserTest < ActiveSupport::TestCase
|
4
|
-
fixtures :all
|
5
|
-
|
6
|
-
context "a user" do
|
7
|
-
before { @user = users(:fred) }
|
8
|
-
|
9
|
-
should("require a name") { @user.should_require_a :name, "can't be blank" }
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
# Uninstall hook code here
|