Sha256: 172e53fe8fe645ef979fd11af347cdefc7cf8f6a76a2f683aa0459b60c918695

Contents?: true

Size: 340 Bytes

Versions: 15

Compression:

Stored size: 340 Bytes

Contents

require File.dirname(__FILE__) + "/../../spec_helper"

describe Admin::UsersHelper do
  dataset :users
  
  it "should render a string containing the user's roles" do
    helper.roles(users(:admin)).should == "Administrator"
    helper.roles(users(:developer)).should == "Developer"
    helper.roles(users(:existing)).should == ''
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.2.2 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.2.1 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.2 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.1.9 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.1.8 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.1.7 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.1.6 spec/helpers/admin/users_helper_spec.rb
radiantcms-couchrest_model-0.1.5 spec/helpers/admin/users_helper_spec.rb
radiant-0.7.2 spec/helpers/admin/users_helper_spec.rb
radiant-0.8.2 spec/helpers/admin/users_helper_spec.rb
radiant-0.8.1 spec/helpers/admin/users_helper_spec.rb
radiant-0.7.0 spec/helpers/admin/users_helper_spec.rb
radiant-0.7.1 spec/helpers/admin/users_helper_spec.rb
radiant-0.8.0 spec/helpers/admin/users_helper_spec.rb