Sha256: dc375da63f32a8a67afe0bb188a771baa9e40a4894ad076251c3cf2b92aea694
Contents?: true
Size: 672 Bytes
Versions: 5
Compression:
Stored size: 672 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Lastfm::Util do subject do Lastfm::Util end describe '.build_options' do it 'should build options' do subject.build_options( ['foo', nil], [:foo], [[:bar, 'xxx'], [:baz, nil] ]).should == { :foo => 'foo', :bar => 'xxx', :baz => nil, } end it 'should use proc object to set optional value' do subject.build_options( ['foo', nil], [:foo], [[:bar, Proc.new { 'xxx' }] ]).should == { :foo => 'foo', :bar => 'xxx', } end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lastfm-1.6.1 | spec/util_spec.rb |
lastfm-1.6.0 | spec/util_spec.rb |
lastfm-1.5.1 | spec/util_spec.rb |
lastfm-1.5.0 | spec/util_spec.rb |
lastfm-1.4.0 | spec/util_spec.rb |