test('visiting / with acceptance-feature on', function(assert) {
  App = startApp();
  withFeature(App, 'acceptance-feature');
  visit('/');

  andThen(function() {
    assert.equal(find('.acceptance-feature-on').length, 1, 'Acceptance feature on div should be in dom');
    assert.equal(find('.acceptance-feature-off').length, 0, 'Acceptance feature off div should not be in dom');
  });

  click('.test-turn-acceptance-off');

  andThen(function(){
    assert.equal(find('.acceptance-feature-on').length, 0, 'Acceptance feature on div should not be in dom');
    assert.equal(find('.acceptance-feature-off').length, 1, 'Acceptance feature off div should be in dom');
  });
});
test('using withFeature and withoutFeature to toggle acceptance-feature on/off', function(assert) {
  App = startApp();
  withFeature(App, 'acceptance-feature');
  visit('/');

  andThen(function() {
    assert.equal(find('.acceptance-feature-on').length, 1, 'Acceptance feature on div should be in dom');
    assert.equal(find('.acceptance-feature-off').length, 0, 'Acceptance feature off div should not be in dom');

    // Now turn the feature off and revist the page
    withoutFeature(App, 'acceptance-feature');
      visit('/');
      andThen(function(){
        assert.equal(find('.acceptance-feature-on').length, 0, 'Acceptance feature on div should not be in dom');
        assert.equal(find('.acceptance-feature-off').length, 1, 'Acceptance feature off div should be in dom');
      });
  });
});