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.
Files changed (93) hide show
  1. data/MIT-LICENSE +1 -1
  2. data/Rakefile +0 -13
  3. data/VERSION +1 -0
  4. data/lib/should_pricot/test_helper_methods.rb +21 -0
  5. data/lib/should_pricot.rb +8 -19
  6. data/test/should_pricot_test.rb +5 -0
  7. data/test/test_helper.rb +8 -25
  8. metadata +21 -114
  9. data/Manifest +0 -92
  10. data/should_pricot.gemspec +0 -31
  11. data/tasks/should_pricot_tasks.rake +0 -4
  12. data/test/fixtures/posts.yml +0 -4
  13. data/test/fixtures/users.yml +0 -9
  14. data/test/functional/users_controller_test.rb +0 -16
  15. data/test/test-app/app/controllers/application_controller.rb +0 -10
  16. data/test/test-app/app/controllers/users_controller.rb +0 -40
  17. data/test/test-app/app/helpers/application_helper.rb +0 -3
  18. data/test/test-app/app/models/post.rb +0 -3
  19. data/test/test-app/app/models/user.rb +0 -7
  20. data/test/test-app/app/views/users/edit.html.erb +0 -0
  21. data/test/test-app/app/views/users/index.html.erb +0 -9
  22. data/test/test-app/app/views/users/new.html.erb +0 -0
  23. data/test/test-app/config/boot.rb +0 -110
  24. data/test/test-app/config/database.yml +0 -4
  25. data/test/test-app/config/environment.rb +0 -12
  26. data/test/test-app/config/environments/test.rb +0 -0
  27. data/test/test-app/config/initializers/funktional.rb +0 -8
  28. data/test/test-app/config/initializers/new_rails_defaults.rb +0 -21
  29. data/test/test-app/config/routes.rb +0 -5
  30. data/test/test-app/db/migrate/001_create_users.rb +0 -18
  31. data/test/test-app/db/migrate/002_create_posts.rb +0 -13
  32. data/test/test-app/public/404.html +0 -30
  33. data/test/test-app/public/422.html +0 -30
  34. data/test/test-app/public/500.html +0 -30
  35. data/test/test-app/script/console +0 -3
  36. data/test/test-app/script/generate +0 -3
  37. data/test/test-app/vendor/plugins/funktional/MIT-LICENSE +0 -20
  38. data/test/test-app/vendor/plugins/funktional/README.rdoc +0 -289
  39. data/test/test-app/vendor/plugins/funktional/Rakefile +0 -23
  40. data/test/test-app/vendor/plugins/funktional/init.rb +0 -8
  41. data/test/test-app/vendor/plugins/funktional/install.rb +0 -1
  42. data/test/test-app/vendor/plugins/funktional/lib/funktional/assertion.rb +0 -9
  43. data/test/test-app/vendor/plugins/funktional/lib/funktional/assigned_assertion.rb +0 -39
  44. data/test/test-app/vendor/plugins/funktional/lib/funktional/attribute_test_helper.rb +0 -27
  45. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/assigned_should_block.rb +0 -32
  46. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/collector.rb +0 -21
  47. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/count_should_block.rb +0 -21
  48. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/delegating_should_block.rb +0 -30
  49. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/element_should_block.rb +0 -29
  50. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/flashed_should_block.rb +0 -17
  51. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_block.rb +0 -60
  52. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_create_block.rb +0 -17
  53. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_delete_block.rb +0 -17
  54. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_block.rb +0 -20
  55. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_create_block.rb +0 -17
  56. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_delete_block.rb +0 -17
  57. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/should_not_send_email_block.rb +0 -18
  58. data/test/test-app/vendor/plugins/funktional/lib/funktional/context/stack_recorder.rb +0 -34
  59. data/test/test-app/vendor/plugins/funktional/lib/funktional/context.rb +0 -126
  60. data/test/test-app/vendor/plugins/funktional/lib/funktional/email_assertion.rb +0 -50
  61. data/test/test-app/vendor/plugins/funktional/lib/funktional/flashed_assertion.rb +0 -12
  62. data/test/test-app/vendor/plugins/funktional/lib/funktional/model_assertions.rb +0 -108
  63. data/test/test-app/vendor/plugins/funktional/lib/funktional/random_characters.rb +0 -11
  64. data/test/test-app/vendor/plugins/funktional/lib/funktional/recursive_assertion.rb +0 -23
  65. data/test/test-app/vendor/plugins/funktional/lib/funktional/route_checker.rb +0 -49
  66. data/test/test-app/vendor/plugins/funktional/lib/funktional/setup.rb +0 -11
  67. data/test/test-app/vendor/plugins/funktional/lib/funktional/test_class_methods.rb +0 -28
  68. data/test/test-app/vendor/plugins/funktional/lib/funktional/test_instance_methods.rb +0 -131
  69. data/test/test-app/vendor/plugins/funktional/lib/funktional.rb +0 -41
  70. data/test/test-app/vendor/plugins/funktional/tasks/should_b_tasks.rake +0 -4
  71. data/test/test-app/vendor/plugins/funktional/test/fixtures/posts.yml +0 -4
  72. data/test/test-app/vendor/plugins/funktional/test/fixtures/users.yml +0 -5
  73. data/test/test-app/vendor/plugins/funktional/test/test-app/app/controllers/application_controller.rb +0 -10
  74. data/test/test-app/vendor/plugins/funktional/test/test-app/app/helpers/application_helper.rb +0 -3
  75. data/test/test-app/vendor/plugins/funktional/test/test-app/app/models/post.rb +0 -3
  76. data/test/test-app/vendor/plugins/funktional/test/test-app/app/models/user.rb +0 -7
  77. data/test/test-app/vendor/plugins/funktional/test/test-app/config/boot.rb +0 -110
  78. data/test/test-app/vendor/plugins/funktional/test/test-app/config/database.yml +0 -4
  79. data/test/test-app/vendor/plugins/funktional/test/test-app/config/environment.rb +0 -12
  80. data/test/test-app/vendor/plugins/funktional/test/test-app/config/environments/test.rb +0 -0
  81. data/test/test-app/vendor/plugins/funktional/test/test-app/config/initializers/funktional.rb +0 -8
  82. data/test/test-app/vendor/plugins/funktional/test/test-app/config/initializers/new_rails_defaults.rb +0 -21
  83. data/test/test-app/vendor/plugins/funktional/test/test-app/config/routes.rb +0 -4
  84. data/test/test-app/vendor/plugins/funktional/test/test-app/db/migrate/001_create_users.rb +0 -18
  85. data/test/test-app/vendor/plugins/funktional/test/test-app/db/migrate/002_create_posts.rb +0 -13
  86. data/test/test-app/vendor/plugins/funktional/test/test-app/public/404.html +0 -30
  87. data/test/test-app/vendor/plugins/funktional/test/test-app/public/422.html +0 -30
  88. data/test/test-app/vendor/plugins/funktional/test/test-app/public/500.html +0 -30
  89. data/test/test-app/vendor/plugins/funktional/test/test-app/script/console +0 -3
  90. data/test/test-app/vendor/plugins/funktional/test/test-app/script/generate +0 -3
  91. data/test/test-app/vendor/plugins/funktional/test/test_helper.rb +0 -27
  92. data/test/test-app/vendor/plugins/funktional/test/unit/user_test.rb +0 -12
  93. 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,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/console'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/generate'
@@ -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