spec/authority/controller_spec.rb in authority-2.5.0 vs spec/authority/controller_spec.rb in authority-2.6.0
- old
+ new
@@ -165,13 +165,13 @@
c.authorize_actions_for(resource_class)
end
end
let(:controller_instance) do
- controller_class.new.tap do |cc|
+ controller_class.new.tap do |cc|
cc.stub(Authority.configuration.user_method).and_return(user)
- end
+ end
end
let(:user) { ExampleUser.new }
describe "run_authorization_check (used as a before_filter)" do
@@ -273,9 +273,9 @@
end
end
end
-
+
end
end