spec/binged_spec.rb in binged-0.3.0 vs spec/binged_spec.rb in binged-1.0.0

- old
+ new

@@ -1,20 +1,20 @@ require 'spec_helper' describe "Binged" do - it "should configure the api_key for easy access" do + it "should configure the account_key for easy access" do Binged.configure do |config| - config.api_key = 'api_key' + config.account_key = 'account_key' end client = Binged::Client.new - client.api_key.should == 'api_key' + client.account_key.should == 'account_key' end describe "Flexible interface" do - + before(:each) do @client = Binged::Client.new end it "should provide an interface to web search" do @@ -22,13 +22,13 @@ end it "should provide an interface to image search" do @client.image.should be_instance_of(Binged::Search::Image) end - + it "should provide an interface to video search" do @client.video.should be_instance_of(Binged::Search::Video) end - + end end