shoulda 2.11.0 → 2.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/CONTRIBUTION_GUIDELINES.rdoc +5 -5
  2. data/README.rdoc +72 -89
  3. data/Rakefile +30 -13
  4. data/lib/shoulda.rb +5 -3
  5. data/lib/shoulda/action_controller/matchers.rb +5 -5
  6. data/lib/shoulda/action_controller/matchers/assign_to_matcher.rb +1 -1
  7. data/lib/shoulda/action_controller/matchers/respond_with_content_type_matcher.rb +9 -9
  8. data/lib/shoulda/action_controller/matchers/respond_with_matcher.rb +12 -12
  9. data/lib/shoulda/action_controller/matchers/route_matcher.rb +1 -1
  10. data/lib/shoulda/action_mailer/matchers/have_sent_email.rb +17 -26
  11. data/lib/shoulda/active_record/helpers.rb +2 -2
  12. data/lib/shoulda/active_record/macros.rb +2 -2
  13. data/lib/shoulda/active_record/matchers/association_matcher.rb +8 -8
  14. data/lib/shoulda/active_record/matchers/ensure_inclusion_of_matcher.rb +1 -1
  15. data/lib/shoulda/active_record/matchers/ensure_length_of_matcher.rb +2 -2
  16. data/lib/shoulda/active_record/matchers/have_db_column_matcher.rb +11 -11
  17. data/lib/shoulda/active_record/matchers/have_db_index_matcher.rb +8 -8
  18. data/lib/shoulda/active_record/matchers/validate_format_of_matcher.rb +2 -4
  19. data/lib/shoulda/active_record/matchers/validate_uniqueness_of_matcher.rb +3 -3
  20. data/lib/shoulda/active_record/matchers/validation_matcher.rb +0 -1
  21. data/lib/shoulda/assertions.rb +2 -2
  22. data/lib/shoulda/autoload_macros.rb +20 -20
  23. data/lib/shoulda/context.rb +2 -2
  24. data/lib/shoulda/{rspec.rb → integrations/rspec.rb} +0 -0
  25. data/lib/shoulda/integrations/rspec2.rb +22 -0
  26. data/lib/shoulda/{test_unit.rb → integrations/test_unit.rb} +0 -0
  27. data/lib/shoulda/macros.rb +32 -2
  28. data/lib/shoulda/tasks/yaml_to_shoulda.rake +11 -11
  29. data/lib/shoulda/version.rb +1 -1
  30. data/rails/init.rb +2 -2
  31. data/test/matchers/action_mailer/have_sent_email_test.rb +27 -10
  32. data/test/other/context_test.rb +22 -22
  33. data/test/other/convert_to_should_syntax_test.rb +1 -1
  34. data/test/other/private_helpers_test.rb +1 -1
  35. data/test/other/should_test.rb +12 -12
  36. data/test/rails2_model_builder.rb +4 -4
  37. data/test/rails2_root/log/test.log +5852 -0
  38. data/test/rails3_model_builder.rb +4 -4
  39. data/test/rails3_root/Gemfile +1 -1
  40. data/test/rails3_root/db/test.sqlite3 +0 -0
  41. data/test/rails3_root/log/test.log +5056 -0
  42. data/test/unit/flea_test.rb +1 -1
  43. metadata +5 -4
@@ -4,7 +4,7 @@ class FleaTest < ActiveSupport::TestCase
4
4
  should_have_and_belong_to_many :dogs
5
5
 
6
6
  context "when a flea is created" do
7
- setup do
7
+ setup do
8
8
  Flea.create
9
9
  end
10
10
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 11
8
- - 0
9
- version: 2.11.0
8
+ - 1
9
+ version: 2.11.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tammer Saleh
@@ -77,15 +77,16 @@ files:
77
77
  - lib/shoulda/autoload_macros.rb
78
78
  - lib/shoulda/context.rb
79
79
  - lib/shoulda/helpers.rb
80
+ - lib/shoulda/integrations/rspec.rb
81
+ - lib/shoulda/integrations/rspec2.rb
82
+ - lib/shoulda/integrations/test_unit.rb
80
83
  - lib/shoulda/macros.rb
81
84
  - lib/shoulda/private_helpers.rb
82
85
  - lib/shoulda/proc_extensions.rb
83
86
  - lib/shoulda/rails.rb
84
- - lib/shoulda/rspec.rb
85
87
  - lib/shoulda/tasks/list_tests.rake
86
88
  - lib/shoulda/tasks/yaml_to_shoulda.rake
87
89
  - lib/shoulda/tasks.rb
88
- - lib/shoulda/test_unit.rb
89
90
  - lib/shoulda/version.rb
90
91
  - lib/shoulda.rb
91
92
  - rails/init.rb