{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails-dom-testing/issues/48","repository_url":"https://api.github.com/repos/rails/rails-dom-testing","labels_url":"https://api.github.com/repos/rails/rails-dom-testing/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails-dom-testing/issues/48/comments","events_url":"https://api.github.com/repos/rails/rails-dom-testing/issues/48/events","html_url":"https://github.com/rails/rails-dom-testing/issues/48","id":140178583,"number":48,"title":"can't modify frozen String on ruby 2.3.0","user":{"login":"masterkain","id":12844,"avatar_url":"https://avatars.githubusercontent.com/u/12844?v=3","gravatar_id":"","url":"https://api.github.com/users/masterkain","html_url":"https://github.com/masterkain","followers_url":"https://api.github.com/users/masterkain/followers","following_url":"https://api.github.com/users/masterkain/following{/other_user}","gists_url":"https://api.github.com/users/masterkain/gists{/gist_id}","starred_url":"https://api.github.com/users/masterkain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterkain/subscriptions","organizations_url":"https://api.github.com/users/masterkain/orgs","repos_url":"https://api.github.com/users/masterkain/repos","events_url":"https://api.github.com/users/masterkain/events{/privacy}","received_events_url":"https://api.github.com/users/masterkain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-03-11T13:03:44Z","updated_at":"2016-08-17T10:32:05Z","closed_at":"2016-03-11T14:43:09Z","body":"On Ruby 2.3.0, when putting the directive `# frozen_string_literal: true` on top of the spec file, this happens:\r\n\r\n```\r\n     Failure/Error: assert_select '[content=?]', 'meta,description'\r\n     RuntimeError:\r\n       can't modify frozen String\r\n     # /Users/kain/.rvm/gems/ruby-2.3.0/gems/rails-dom-testing-1.0.7/lib/rails/dom/testing/assertions/selector_assertions/substitution_context.rb:8:in `sub!'\r\n     # /Users/kain/.rvm/gems/ruby-2.3.0/gems/rails-dom-testing-1.0.7/lib/rails/dom/testing/assertions/selector_assertions/substitution_context.rb:8:in `substitute!'\r\n     # /Users/kain/.rvm/gems/ruby-2.3.0/gems/rails-dom-testing-1.0.7/lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb:77:in `extract_selector'\r\n     # /Users/kain/.rvm/gems/ruby-2.3.0/gems/rails-dom-testing-1.0.7/lib/rails/dom/testing/assertions/selector_assertions/html_selector.rb:10:in `initialize'\r\n     # /Users/kain/.rvm/gems/ruby-2.3.0/gems/rails-dom-testing-1.0.7/lib/rails/dom/testing/assertions/selector_assertions.rb:167:in `new'\r\n     # /Users/kain/.rvm/gems/ruby-2.3.0/gems/rails-dom-testing-1.0.7/lib/rails/dom/testing/assertions/selector_assertions.rb:167:in `assert_select'\r\n     # ./spec/controllers/products_controller_spec.rb:247:in `block (5 levels) in <top (required)>'\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/rails-dom-testing/issues/comments/240374566","html_url":"https://github.com/rails/rails-dom-testing/issues/48#issuecomment-240374566","issue_url":"https://api.github.com/repos/rails/rails-dom-testing/issues/48","id":240374566,"user":{"login":"donv","id":57275,"avatar_url":"https://avatars.githubusercontent.com/u/57275?v=3","gravatar_id":"","url":"https://api.github.com/users/donv","html_url":"https://github.com/donv","followers_url":"https://api.github.com/users/donv/followers","following_url":"https://api.github.com/users/donv/following{/other_user}","gists_url":"https://api.github.com/users/donv/gists{/gist_id}","starred_url":"https://api.github.com/users/donv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donv/subscriptions","organizations_url":"https://api.github.com/users/donv/orgs","repos_url":"https://api.github.com/users/donv/repos","events_url":"https://api.github.com/users/donv/events{/privacy}","received_events_url":"https://api.github.com/users/donv/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T10:32:05Z","updated_at":"2016-08-17T10:32:05Z","body":"Thanks for the response, @kaspth , but with the workaround, or just not use the substitution feature, I am good without the fix 😄  ."}}
{"actor":{"display_login":"donv"}}