Skip to content

Commit

Permalink
Add column_family_property to mock class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Jackson committed Apr 23, 2011
1 parent e13ea36 commit f51ef30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cassandra/mock.rb
Expand Up @@ -283,7 +283,11 @@ def to_compare_with_type(column_name, column_family, standard=true)
end

def column_family_type(column_family)
schema[column_family.to_s]['Type']
column_family_property(column_family, 'Type')
end

def column_family_property(column_family, property)
schema[column_family.to_s][property]
end

def cf(column_family)
Expand Down

0 comments on commit f51ef30

Please sign in to comment.