Sha256: 7f93e284ebeccaee90f0c3532775b7ed85f32bde42af0cd79dbb06ddb607121c
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
require 'test_helper' require 'canard' describe Canard do describe "ability_definitions" do it "should be an accessor" do Canard.must_respond_to(:ability_definitions) end it "should be a hash" do Canard.ability_definitions.must_be_instance_of Hash end end describe "ability_key" do it "returns a snake case version of the string" do class_name = 'CamelCaseString' key = :camel_case_string Canard.ability_key(class_name).must_equal key end it "prepends namespaces to the class name" do class_name = 'Namespace::CamelCaseString' key = :namespace_camel_case_string Canard.ability_key(class_name).must_equal key end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canard-0.5.0.pre | test/canard/canard_test.rb |
canard-0.4.3 | test/canard/canard_test.rb |