Sha256: 8c866172f461984dcb73b069d60a37d858fe1e0a64fd4a0478b70506a28b54cd

Contents?: true

Size: 809 Bytes

Versions: 23

Compression:

Stored size: 809 Bytes

Contents

module CanTangoFixtures
  def tango_permissions
    {"roles"=>{
      "admin"=>{
       "can"=>{
        "manage"=>["all"]
       }},
      "user"=>{
       "can"=>{
        "read"=>["^articles", "Post"],
        "write"=>["Comment"]
       },
       "cannot"=>{
        "write"=>["Post"],
        "write"=>["Article"]
       }
      }
     }, 
     "role_groups"=>{"bloggers"=>{"can"=>{"read"=>["Article", "Comment"]}, 
                                  "cannot"=>{"write"=>["Article", "Post"]}}, 
                     "editors"=>{"can"=>{"read"=>["Article", "Comment"]}, 
                                 "cannot"=>{"write"=>["Article", "Post"]}}}, 
     "licenses"=>{"editors"=>{"can"=>{"manage"=>["all"]}}},
     "users" => {"kris@gmail.com" => {"can" => {"read" =>["Article"] }}}
    
    }  
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
cantango-permits-0.1.1 spec/fixtures/tango_fixtures.rb
cantango-0.9.4.7 spec/fixtures/tango_fixtures.rb
cantango-0.9.4.6 spec/fixtures/tango_fixtures.rb
cantango-0.9.4.5 spec/fixtures/tango_fixtures.rb
cantango-0.9.4.3 spec/fixtures/tango_fixtures.rb
cantango-0.9.4.2 spec/fixtures/tango_fixtures.rb
cantango-0.9.4.1 spec/fixtures/tango_fixtures.rb
cantango-0.9.4 spec/fixtures/tango_fixtures.rb
cantango-0.9.3.2 spec/fixtures/tango_fixtures.rb
cantango-0.8.9.5 spec/fixtures/tango_fixtures.rb
cantango-0.8.9.4 spec/fixtures/tango_fixtures.rb
cantango-0.8.9.3 spec/fixtures/tango_fixtures.rb
cantango-0.8.9.2 spec/fixtures/tango_fixtures.rb
cantango-0.8.9.1 spec/fixtures/tango_fixtures.rb
cantango-0.8.9 spec/fixtures/tango_fixtures.rb
cantango-0.8.8.1 spec/fixtures/tango_fixtures.rb
cantango-0.8.8 spec/fixtures/tango_fixtures.rb
cantango-0.8.7 spec/fixtures/tango_fixtures.rb
cantango-0.8.6.2 spec/fixtures/tango_fixtures.rb
cantango-0.8.6.1 spec/fixtures/tango_fixtures.rb