Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minitest got error message about document_root_element #159

Open
wuwx opened this issue Oct 27, 2015 · 0 comments
Open

Minitest got error message about document_root_element #159

wuwx opened this issue Oct 27, 2015 · 0 comments

Comments

@wuwx
Copy link

wuwx commented Oct 27, 2015

Rails 4.2.4

require 'test_helper'

class CommentsWidgetTest < Apotomo::TestCase
  has_widgets do |root|
    root << widget(:comments)
  end

  test "display" do
    render_widget :comments
    assert_select "h1"
  end
end
CommentsWidgetTest#test_display:
NotImplementedError: Implementing document_root_element makes assert_select work without needing to specify an element to select from.
    test/widgets/comments_widget_test.rb:10:in `block in <class:CommentsWidgetTest>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant