spec/unit/views/components/attributes_table_spec.rb in activeadmin-rb-1.4.0 vs spec/unit/views/components/attributes_table_spec.rb in activeadmin-rb-1.5.0

- old
+ new

@@ -1,10 +1,10 @@ require 'rails_helper' RSpec.describe ActiveAdmin::Views::AttributesTable do describe "creating with the dsl" do - let(:helpers) { action_view } + let(:helpers) { mock_action_view } let(:post) do post = Post.new title: "Hello World", body: nil allow(post).to receive(:id){ 1 } allow(post).to receive(:new_record?){ false }