spec/keytar/key_builder_spec.rb in keytar-1.4.0 vs spec/keytar/key_builder_spec.rb in keytar-1.4.1
- old
+ new
@@ -12,9 +12,16 @@
describe 'build_key class method' do
before do
@options = {:name => "foo", :args => nil}
end
+ describe 'manually build key' do
+ it 'works' do
+ foo = Foo.new
+ foo.build_key(:name => "method", :args => "args").should eq("foos:method:args")
+ end
+ end
+
describe 'build_key' do
it 'calls other class methods' do
Foo.should_receive(:build_key_hash)
Foo.should_receive(:key_hash_to_ordered_array)
Foo.should_receive(:key_from_array)
\ No newline at end of file