diff --git a/lib/shoulda/action_controller/macros.rb b/lib/shoulda/action_controller/macros.rb index e9eb6dda..283a340f 100644 --- a/lib/shoulda/action_controller/macros.rb +++ b/lib/shoulda/action_controller/macros.rb @@ -27,23 +27,14 @@ module Macros # Macro that creates a test asserting that the flash contains the given # value. Expects a +String+ or +Regexp+. # - # If the argument is +nil+, it will assert that the flash is not set. - # This behavior is deprecated. - # # Example: # # should_set_the_flash_to "Thank you for placing this order." # should_set_the_flash_to /created/i def should_set_the_flash_to(val) - if val - matcher = set_the_flash.to(val) - should matcher.description do - assert_accepts matcher, @controller - end - else - warn "[DEPRECATION] should_set_the_flash_to nil is deprecated. " << - "Use should_not_set_the_flash instead." - should_not_set_the_flash + matcher = set_the_flash.to(val) + should matcher.description do + assert_accepts matcher, @controller end end diff --git a/lib/shoulda/action_view.rb b/lib/shoulda/action_view.rb deleted file mode 100644 index 2615b637..00000000 --- a/lib/shoulda/action_view.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'shoulda' -require 'shoulda/action_view/macros' - -module Test # :nodoc: all - module Unit - class TestCase - extend Shoulda::ActionView::Macros - end - end -end diff --git a/lib/shoulda/action_view/macros.rb b/lib/shoulda/action_view/macros.rb deleted file mode 100644 index 9a7b4811..00000000 --- a/lib/shoulda/action_view/macros.rb +++ /dev/null @@ -1,61 +0,0 @@ -module Shoulda # :nodoc: - module ActionView # :nodoc: - # = Macro test helpers for your view - # - # By using the macro helpers you can quickly and easily create concise and - # easy to read test suites. - # - # This code segment: - # context "on GET to :new" do - # setup do - # get :new - # end - # - # should_render_page_with_metadata :title => /index/ - # - # should "do something else really cool" do - # assert_select '#really_cool' - # end - # end - # - # Would produce 3 tests for the +show+ action - module Macros - - # Macro that creates a test asserting that the rendered view contains a