spec/unit/views/components/attributes_table_spec.rb in activeadmin-1.0.0.pre5 vs spec/unit/views/components/attributes_table_spec.rb in activeadmin-1.0.0

- old
+ new

@@ -137,11 +137,11 @@ post.foo_id = 23 post.author = User.new username: 'john_doe', first_name: 'John', last_name: 'Doe' end it 'should call the association if one exists' do table = render_arbre_component assigns do - attributes_table_for post, :author_id + attributes_table_for post, :author end expect(table.find_by_tag('th').first.content).to eq 'Author' expect(table.find_by_tag('td').first.content).to eq 'John Doe' end it 'should not attempt to call a nonexistant association' do @@ -254,10 +254,10 @@ end context "when using an Array of Hashes" do let(:table) do render_arbre_component nil, helpers do - attributes_table_for [{foo: 1},{foo: 2}] do + attributes_table_for [{foo: 1}, {foo: 2}] do row :foo end end end it "should render" do