Skip to content

Commit 88bafaa

Browse files
committed
Missing spec file
1 parent ef275b2 commit 88bafaa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

spec/analytics_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919

2020
it 'should add custom variables for every test the user is involved in' do
2121
first_alt = ab_test('link_colour', 'red', 'blue')
22-
23-
expect(session).to eql({'link_colour' => first_alt})
22+
expect(ab_user.active_experiments).to eql({'link_colour' => first_alt})
2423

2524
tracking_code = tracking_code(account: 'UA-12345-6')
2625
expect(tracking_code).to eql(%Q{ <script type=\"text/javascript\">\n var _gaq = _gaq || [];\n _gaq.push(["_setAccount", "UA-12345-6"]);\n \n _gaq.push(["_setCustomVar", 1, "link_colour", "#{first_alt}", 1]);\n _gaq.push(["_trackPageview"]);\n (function() {\n var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n ga.src = ('https:' == document.location.protocol ? 'https://ssl.google-analytics.com/ga.js' : 'http://www.google-analytics.com/ga.js');\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n })();\n </script>\n})

0 commit comments

Comments
 (0)