Enabling Stanford and hint visibility experiments

- Specified levels on which experiments should take place.
- Switched to using ip addresses, rather than user ids, to determine experiment options.
- Added ip address hash to ActivityHint.
- Added and improved tests.
Ah, okay.  Will fix.


On Fri, Jul 25, 2014 at 2:34 PM, Laurel <notifications@github.com> wrote:

> In test/models/experiment_activity_test.rb:
>
> > @@ -52,34 +52,76 @@ def feedback_experiment_uri(value)
> >      assert_equal 0, ActivityHint.count
> >    end
> >
> > -  test "try to run Stanford feedback experiment with hints" do
> > -    level_source = create :level_source
> > -    CROWDSOURCED_HINT = 'crowdsourced hints'
> > -    LevelSourceHint.create!(level_source_id: level_source.id,
> > -                            hint: CROWDSOURCED_HINT,
> > +  def setup_hints
> > +    @level_source = create :level_source
> > +    @CROWDSOURCED_HINT = 'crowdsourced hints'
>
> this isn't actually a constant, is it? (capital letters in ruby means
> constant but I don't think it works for instance variables?)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/code-dot-org/dashboard/pull/1092/files#r15425717>.
>