lib/shoulda/matchers/action_controller/callback_matcher.rb in shoulda-matchers-3.1.1 vs lib/shoulda/matchers/action_controller/callback_matcher.rb in shoulda-matchers-3.1.2

- old
+ new

@@ -7,11 +7,11 @@ # class UsersController < ApplicationController # before_filter :authenticate_user! # end # # # RSpec - # describe UsersController do + # RSpec.describe UsersController, type: :controller do # it { should use_before_filter(:authenticate_user!) } # it { should_not use_before_filter(:prevent_ssl) } # end # # # Minitest (Shoulda) @@ -32,11 +32,11 @@ # class IssuesController < ApplicationController # after_filter :log_activity # end # # # RSpec - # describe IssuesController do + # RSpec.describe IssuesController, type: :controller do # it { should use_after_filter(:log_activity) } # it { should_not use_after_filter(:destroy_user) } # end # # # Minitest (Shoulda) @@ -57,11 +57,11 @@ # class UsersController < ApplicationController # before_action :authenticate_user! # end # # # RSpec - # describe UsersController do + # RSpec.describe UsersController, type: :controller do # it { should use_before_action(:authenticate_user!) } # it { should_not use_before_action(:prevent_ssl) } # end # # # Minitest (Shoulda) @@ -82,11 +82,11 @@ # class IssuesController < ApplicationController # after_action :log_activity # end # # # RSpec - # describe IssuesController do + # RSpec.describe IssuesController, type: :controller do # it { should use_after_action(:log_activity) } # it { should_not use_after_action(:destroy_user) } # end # # # Minitest (Shoulda) @@ -107,11 +107,11 @@ # class ChangesController < ApplicationController # around_filter :wrap_in_transaction # end # # # RSpec - # describe ChangesController do + # RSpec.describe ChangesController, type: :controller do # it { should use_around_filter(:wrap_in_transaction) } # it { should_not use_around_filter(:save_view_context) } # end # # # Minitest (Shoulda) @@ -132,10 +132,10 @@ # class ChangesController < ApplicationController # around_action :wrap_in_transaction # end # # # RSpec - # describe ChangesController do + # RSpec.describe ChangesController, type: :controller do # it { should use_around_action(:wrap_in_transaction) } # it { should_not use_around_action(:save_view_context) } # end # # # Minitest (Shoulda)