We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c32ed89 commit 65277b4Copy full SHA for 65277b4
spec/gon/gon_spec.rb
@@ -29,8 +29,10 @@
29
it 'output as js correct' do
30
Gon.clear
31
Gon.int = 1
32
+ Gon.instance_variable_set(:@request_id, request.object_id)
33
ActionView::Base.instance_methods.map(&:to_s).include?('include_gon').should == true
34
base = ActionView::Base.new
35
+ base.request = request
36
base.include_gon.should == "<script>window.gon = {};" +
37
"gon.int=1;" +
38
"</script>"
0 commit comments