Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created August 3, 2010 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dchelimsky/506366 to your computer and use it in GitHub Desktop.
Save dchelimsky/506366 to your computer and use it in GitHub Desktop.
describe CfgInterface do
fixtures :cfg_entities, :cfg_entity_attributes, :cfg_interfaces, :cfg_intf_filters
it "should return a hash with filter parameters" do
filters_hash = CfgInterface.filters_hash_for('CONS_ALL_ACCOUNT')
filters_hash.should have(2).entries
filters_hash['description'].should eql('ach_accounts.description')
filters_hash['id_param'].should eql('ach_accounts.id')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment