Skip to content

Commit 65277b4

Browse files
committed
Fix specs with include_gon
1 parent c32ed89 commit 65277b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/gon/gon_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
it 'output as js correct' do
3030
Gon.clear
3131
Gon.int = 1
32+
Gon.instance_variable_set(:@request_id, request.object_id)
3233
ActionView::Base.instance_methods.map(&:to_s).include?('include_gon').should == true
3334
base = ActionView::Base.new
35+
base.request = request
3436
base.include_gon.should == "<script>window.gon = {};" +
3537
"gon.int=1;" +
3638
"</script>"

0 commit comments

Comments
 (0)