Sha256: 76458185397cfaa8be065b5c10cd7e0062c09f781a3a7da8bd8c7a67530d6b23

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

describe "sufia/admin/features/index.html.erb", type: :view do
  let(:ability) { instance_double("Ability") }
  let(:feature_set) do
    Flipflop::FeaturesController::FeaturesPresenter.new(Flipflop::FeatureSet.current)
  end
  before do
    allow(controller).to receive(:current_ability).and_return(ability)
    assign(:feature_set, feature_set)
  end
  it "shows list of features" do
    render
    expect(rendered).to have_content('enabled')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/views/sufia/admin/features/index.html.erb_spec.rb
sufia-7.4.0 spec/views/sufia/admin/features/index.html.erb_spec.rb
sufia-7.3.1 spec/views/sufia/admin/features/index.html.erb_spec.rb
sufia-7.3.0 spec/views/sufia/admin/features/index.html.erb_spec.rb
sufia-7.3.0.rc3 spec/views/sufia/admin/features/index.html.erb_spec.rb
sufia-7.3.0.rc2 spec/views/sufia/admin/features/index.html.erb_spec.rb