Sha256: 2d7246f4ea4e817a6d57fa3c02e7be312adab68c987e68e76ee21595f3239725
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
require 'spec/spec_helper' describe MadMimi do describe ".configure" do ['username', 'api_key'].each do |key| it "should set the #{key}" do MadMimi.configure do |config| config.send("#{key}=", key) MadMimi.configure.send(key).should == key end end end end describe ".authentication" do before do MadMimi.configure do |config| config.username = "email@example.com" config.api_key = "api_key" end end it "should return the authentication hash" do MadMimi.authentication.should == { :api_key => "api_key", :username => "email@example.com" } end end describe ".api_url" do it "should return the default api_url" do MadMimi.api_url.should == 'http://api.madmimi.com' end end describe ".audience" do it "should be a MadMimi::Audience" do MadMimi.audience.should be_a MadMimi::Audience end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mad_mimi-0.0.3 | spec/mad_mimi_spec.rb |
mad_mimi-0.0.2 | spec/mad_mimi_spec.rb |
mad_mimi-0.0.1 | spec/mad_mimi_spec.rb |