Sha256: d08d40bc89874655a28fb4afdb9d1a54e15741deed1376b685bcccb743312133
Contents?: true
Size: 629 Bytes
Versions: 4
Compression:
Stored size: 629 Bytes
Contents
require 'spec_helper' describe "open_conference_ware/users/index.html.erb" do fixtures :open_conference_ware_users, :open_conference_ware_events before do stub_settings_accessors_on(view) end it "should not include admin column by default" do assign(:users, [users(:aaron), users(:quentin)]) render rendered.should_not have_selector(".admin", text: "admin") end it "should include admin column when admin is logged in" do view.stub(:admin?).and_return(true) assign(:users, [users(:aaron), users(:quentin)]) render rendered.should have_selector(".admin", text: "admin") end end
Version data entries
4 entries across 4 versions & 1 rubygems